]> granicus.if.org Git - postgis/commitdiff
Patch to write null geometries as "\N" in the dump file format case.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 7 Aug 2002 16:31:27 +0000 (16:31 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 7 Aug 2002 16:31:27 +0000 (16:31 +0000)
Submitted by Steffen Macke <sdteffen@web.de>

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

loader/shp2pgsql.c

index 858b893339c2928d7e2c160baf47ed25651c2ec0..6e693fe8ac0988a52ab5be4cb24689b4a6fe1db1 100644 (file)
@@ -409,7 +409,7 @@ int Insert_attributes(DBFHandle hDBFHandle, int row){
        for( i = 0; i < num_fields; i++ ){
                 if(DBFIsAttributeNULL( hDBFHandle, row, i)){
                        if(dump_format){
-                              printf("\tNULL");
+                              printf("\t\\N");
                        }else{
                               printf(",NULL");
                        }