From ac4e5e18fe52ce58a8d2a1917b4feac05baa4723 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Sun, 15 Nov 2009 19:52:40 +0000 Subject: [PATCH] Handle odd ArcMap scinotation for large ints. (#38) git-svn-id: http://svn.osgeo.org/postgis/trunk@4816 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-core.c | 4 ---- loader/shp2pgsql.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/loader/shp2pgsql-core.c b/loader/shp2pgsql-core.c index 1c936a764..be590d055 100644 --- a/loader/shp2pgsql-core.c +++ b/loader/shp2pgsql-core.c @@ -666,10 +666,6 @@ CreateTable(void) { stringbuffer_append (sb_row, "int4"); } - else if ( field_width < 19 ) - { - stringbuffer_append (sb_row, "int8"); - } else { stringbuffer_aprintf (sb_row, "numeric(%d,0)", field_width); diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 17ac05628..16a3baf44 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -582,10 +582,6 @@ CreateTable(void) { printf ("int4"); } - else if ( field_width < 19 ) - { - printf ("int8"); - } else { printf("numeric(%d,0)", -- 2.50.1