Ticket #38: scinot1.patch

File scinot1.patch, 0.8 KB (added by pramsey, 3 years ago)

Possible patch

  • loader/shp2pgsql-core.c

     
    666666                        { 
    667667                                stringbuffer_append (sb_row, "int4"); 
    668668                        } 
    669                         else if  ( field_width < 19 ) 
    670                         { 
    671                                 stringbuffer_append (sb_row, "int8"); 
    672                         } 
    673669                        else 
    674670                        { 
    675671                                stringbuffer_aprintf (sb_row, "numeric(%d,0)", field_width); 
  • loader/shp2pgsql.c

     
    582582                        { 
    583583                                printf ("int4"); 
    584584                        } 
    585                         else if  ( field_width < 19 ) 
    586                         { 
    587                                 printf ("int8"); 
    588                         } 
    589585                        else 
    590586                        { 
    591587                                printf("numeric(%d,0)",