]> granicus.if.org Git - postgis/commitdiff
fixes the unwanted quotation of NULLs for the sql insert format. Submitted
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 24 Jul 2002 20:40:59 +0000 (20:40 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 24 Jul 2002 20:40:59 +0000 (20:40 +0000)
by Steffen Macke.

git-svn-id: http://svn.osgeo.org/postgis/trunk@176 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql.c

index 8581bed1149ad51acc0edff34b9eb62101c9a352..858b893339c2928d7e2c160baf47ed25651c2ec0 100644 (file)
@@ -411,7 +411,7 @@ int Insert_attributes(DBFHandle hDBFHandle, int row){
                        if(dump_format){
                               printf("\tNULL");
                        }else{
-                              printf(",'NULL'");
+                              printf(",NULL");
                        }
                 }else{
                        if (dump_format){