protected function quoteTable($table)
    {
        # The odbc sql only uses it's quote strings for renaming fields, not for quoting table/field names
        if ($this->mode == "odbc") {
            return $table;
        }

        $table = trim($table);

        # There is a standard function for quoting postgres table names
        if (in_array($this->mode, ["postgres", "redshift"], true)) {
            $this->connect();
            return pg_escape_identifier($this->server, $table);
        }

        $chars = $this->quoteChars[$this->mode];

        if (is_array($chars)) {
            $from = $chars[0];
            $to = $chars[1];
        } else {
            $from = $chars;
            $to = $chars;
        }

        $quoted = $from . $table . $to;

        return $quoted;
    }
protected function quoteTable($table)
    {
        # The odbc sql only uses it's quote strings for renaming fields, not for quoting table/field names
        if ($this->mode == "odbc") {
            return $table;
        }

        $table = trim($table);

        # There is a standard function for quoting postgres table names
        if (in_array($this->mode, ["postgres", "redshift"], true)) {
            $this->connect();
            return pg_escape_identifier($this->server, $table);
        }

        $chars = $this->quoteChars[$this->mode];

        if (is_array($chars)) {
            $from = $chars[0];
            $to = $chars[1];
        } else {
            $from = $chars;
            $to = $chars;
        }

        $quoted = $from . $table . $to;

        return $quoted;
    }
protected function quoteTable ( $ table ) { # The odbc sql only uses it's quote strings for renaming fields, not for quoting table/field names if ( $ this -> mode == "odbc" ) { return $ table ; } $ table = trim ( $ table ) ; # There is a standard function for quoting postgres table names if ( in_array ( $ this -> mode , [ "postgres" , "redshift" ] , true ) ) { $ this -> connect ( ) ; return pg_escape_identifier ( $ this -> server , $ table ) ; } $ chars = $ this -> quoteChars [ $ this -> mode ] ; if ( is_array ( $ chars ) ) { $ from = $ chars [ 0 ] ; $ to = $ chars [ 1 ] ; } else { $ from = $ chars ; $ to = $ chars ; } $ quoted = $ from . $ table . $ to ; return $ quoted ; }
Quote a table with the appropriate characters for this mode
Quote a table with the appropriate characters for this mode