]> granicus.if.org Git - postgis/commitdiff
Fixed bug in user query handling, reported by Andrew Seales
authorSandro Santilli <strk@keybit.net>
Tue, 12 Jul 2005 16:19:29 +0000 (16:19 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 12 Jul 2005 16:19:29 +0000 (16:19 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@1812 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
loader/pgsql2shp.c

diff --git a/CHANGES b/CHANGES
index 69196b6d78ca72ab76f33b0a11a934a6333183b8..d7126b9e6f70d8504abbec19d052142d5603f429 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+PostGIS 1.0.3
+????/??/??
+       - Bugfix in dumper handling of user-defined queries 
+
 PostGIS 1.0.2
 2005/07/04
        - Fault tolerant btree ops
index 1a05c03a6746ebb32e5ceb0208c78ffb5c2a2b6f..b13928159eb2424a13e71705e5adccce60e09702 100644 (file)
@@ -3103,7 +3103,7 @@ create_usrquerytable(void)
        char *query;
        PGresult *res;
 
-       query = malloc(sizeof(table)+sizeof(usrquery)+256);
+       query = malloc(strlen(table)+strlen(usrquery)+32);
        sprintf(query, "CREATE TEMP TABLE \"%s\" AS %s", table, usrquery);
 
         printf("Preparing table for user query... ");
@@ -3122,6 +3122,9 @@ create_usrquerytable(void)
 
 /**********************************************************************
  * $Log$
+ * Revision 1.74.2.3  2005/07/12 16:19:29  strk
+ * Fixed bug in user query handling, reported by Andrew Seales
+ *
  * Revision 1.74.2.2  2005/05/16 17:51:17  strk
  * BUGFIX in attribute names unicity enforcement
  *