Changeset 11252

Show
Ignore:
Timestamp:
04/13/07 14:25:08 (1 year ago)
Author:
mloskot
Message:

Added quoting of schema name to OGR PG (Ticket #1412). Now, OGR follows the strategy of 'always quote schema and table identifier' as explained in the PostgreSQL manual.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/ogr/ogrsf_frmts/pg/ogrpgtablelayer.cpp

    r10931 r11252  
    226226    { 
    227227        sprintf( szLayerName, "%s.%s", pszSchemaNameIn, pszTableIn ); 
    228         sprintf( pszSqlTableName, "%s.\"%s\"", pszSchemaNameIn, pszTableIn ); 
     228        sprintf( pszSqlTableName, "\"%s\".\"%s\"", pszSchemaNameIn, pszTableIn ); 
    229229    } 
    230230    else