[GRASS-SVN] r60544 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 28 08:06:15 PDT 2014


Author: martinl
Date: 2014-05-28 08:06:15 -0700 (Wed, 28 May 2014)
New Revision: 60544

Modified:
   grass/trunk/lib/vector/Vlib/simple_features.c
Log:
vlib: fix sf table name handling 


Modified: grass/trunk/lib/vector/Vlib/simple_features.c
===================================================================
--- grass/trunk/lib/vector/Vlib/simple_features.c	2014-05-28 14:54:29 UTC (rev 60543)
+++ grass/trunk/lib/vector/Vlib/simple_features.c	2014-05-28 15:06:15 UTC (rev 60544)
@@ -325,7 +325,7 @@
             return -1;
         }
 
-        sprintf(stmt, "SELECT count(*) FROM \"%s\".%s", pg_info->schema_name,
+        sprintf(stmt, "SELECT count(*) FROM \"%s\".\"%s\"", pg_info->schema_name,
                 pg_info->table_name);
         nfeat = Vect__execute_get_value_pg(pg_info->conn, stmt);
         if (nfeat < 0) {



More information about the grass-commit mailing list