]> granicus.if.org Git - postgis/commitdiff
Reduce FTDate field size to 8 bytes from 10. Matches other calls in the file
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 10 Apr 2008 14:44:26 +0000 (14:44 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 10 Apr 2008 14:44:26 +0000 (14:44 +0000)
now, no good explanation in code why it was 10 to start with.
http://postgis.refractions.net/pipermail/postgis-users/2008-April/019169.html

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

loader/pgsql2shp.c

index d8f3c0fb89cff681405826917afb1c874cc17e8b..3a0f61c4c43b06c20cf47b6c8485ae2c03a129d8 100644 (file)
@@ -2727,13 +2727,12 @@ initialize(void)
                }
 
                /*
-                * Date field, which we store as a string so we need
-                * more width in the column
+                * Date field
                 */
                if(type == 1082)
                {
                        if ( DBFAddField(dbf, field_name, FTDate,
-                               10, 0) == -1 )
+                               8, 0) == -1 )
                        {
                                printf( "Error - Date field could not "
                                        "be created.\n");