protected function formatTableName(Database_Query $oQuery) { $aTable = $oQuery->table(); $sTable = $this->markDatabaseObject($aTable[0]); if (!is_null($aTable[1])) { // alias $sTable .= ' AS ' . $this->escapeString($aTable[1]); } return $sTable; }