0001-improve-query-that-lists-all-PostGIS-columns-fix-478.patch

Patch - Kirill Mueller, 2012-01-11 04:25 PM

Download (1.52 KB)

View differences:

src/providers/postgres/qgspostgresconn.cpp
412 412
    if ( nColumns > 0 )
413 413
    {
414 414
      // TODO: handle this for the topogeometry case
415
      sql += " AND NOT EXISTS (SELECT * FROM geometry_columns WHERE pg_namespace.nspname=f_table_schema AND pg_class.relname=f_table_name)";
415
      sql += " AND (pg_namespace.nspname, pg_class.relname) NOT IN (SELECT f_table_schema, f_table_name FROM geometry_columns)";
416 416

  
417 417
      if ( nGTables > 1 )
418 418
      {
419 419
        // TODO: handle this for the topogeometry case
420 420
        // TODO: handle this for the geometry case ?
421
        sql += " AND NOT EXISTS (SELECT * FROM geography_columns WHERE pg_namespace.nspname=f_table_schema AND pg_class.relname=f_table_name)";
421
        sql += " AND (pg_namespace.nspname, pg_class.relname) NOT IN (SELECT f_table_schema, f_table_name FROM geography_columns)";
422 422
      }
423 423
    }
424 424
    else
425
-