/** * Escapes an identifier (table / database name). Typically the value * is simply double quoted. Don't pass in already escaped identifiers in, * as this will double escape the value! * * @param string $value The identifier to escape * @param string $separator optional identifier splitter */ public function escapeIdentifier($value, $separator = '.') { return $this->connector->escapeIdentifier($value, $separator); }
public function escapeIdentifier($value, $separator = '.') { if (empty($separator) && function_exists('pg_escape_identifier')) { return pg_escape_identifier($this->dbConn, $value); } // Let parent function handle recursive calls return parent::escapeIdentifier($value, $separator); }