Changeset 3069

Show
Ignore:
Timestamp:
04/24/07 06:23:09 (2 months ago)
Author:
demian
Message:

handling pg quoting probs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vendor/pear/DB/pgsql.php

    r2944 r3069  
    188188     * <code> 
    189189     * require_once 'DB.php'; 
    190      *  
     190     * 
    191191     * $dsn = 'pgsql://user:pass@unix(/tmp)/dbname?new_link=true'; 
    192192     * $options = array( 
    193193     *     'portability' => DB_PORTABILITY_ALL, 
    194194     * ); 
    195      *  
     195     * 
    196196     * $db =& DB::connect($dsn, $options); 
    197197     * if (PEAR::isError($db)) { 
     
    493493        return $boolean ? 'TRUE' : 'FALSE'; 
    494494    } 
    495       
     495 
    496496    // }}} 
    497497    // {{{ escapeSimple() 
     
    787787     * Gets the DBMS' native error message produced by the last query 
    788788     * 
    789      * {@internal Error messages are used instead of error codes  
     789     * {@internal Error messages are used instead of error codes 
    790790     * in order to support older versions of PostgreSQL.}} 
    791791     * 
     
    972972        $field_name = @pg_fieldname($resource, $num_field); 
    973973 
     974        // Check if $table_name is quoted using quoteIdentifier 
     975        $table_name = (strpos($table_name,'"') === 0)?substr($table_name,1,strlen($table_name)-2):$table_name; 
     976 
    974977        // Check if there's a schema in $table_name and update things 
    975978        // accordingly.