Changes between Initial Version and Version 1 of Ticket #3920
- Timestamp:
- Jan 20, 2011, 12:43:33 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3920
- Property Keywords numeric added; numeroc removed
-
Ticket #3920 – Description
initial v1 1 1 Hello, 2 2 3 if OGR creates a new SQLServer table, it derives SQLServer datatypes from dbase datatypes. For numeric columns, it chooses either NUMERIC(x, 0) or NUMERIC(x,y). In practise, depending on the different kinds of shapefile , this can lead to annumeric overflow indicated by the SQLServer driver. In many cases, OGR creates the target table and crashes while inserting the first row.3 if OGR creates a new SQLServer table, it derives SQLServer datatypes from dbase datatypes. For numeric columns, it chooses either NUMERIC(x, 0) or NUMERIC(x,y). In practise, depending on the different kinds of shapefiles, this can lead to a numeric overflow indicated by the SQLServer driver. In many cases, OGR creates the target table and crashes while inserting the first row. 4 4 5 It would be better, to choose INT or FLOAT as default numeric datatypes. If anybody prefers NUMERIC(), he couldcreate the target table before starting OGR and runs OGR in -append mode.5 A good solution would be if OGR chooses INT instead of NUMERIC(x,0) and FLOAT instead of NUMERIC(x,y). If anybody prefers NUMERIC() datatypes, he can create the target table before starting OGR and runs OGR in -append mode. 6 6 7 7 Kind Regards, 8 8 9 Klaus 9 Klaus Kuehne 10 11 Leibniz Institute for Applied Geophysics 12 13 Hannover, Germany