This project is read-only.
1
Vote

Invalid comma separator generated

description

Where I live (Europe), "," is the comma separator, so sqlgen created invalid insert statements for floats, eg. insert into test (floatCol) values(2,3).
 
I fixed it in the most simply/dirty way by adding this in private void SaveSingleColValue(SqlDataReader reader, StringBuilder values, string columnName):
 
        else if (columnValue is double || columnValue is Decimal || columnValue is float)
        {
            values.Append(columnValue.ToString().Replace(",", "."));
        }
 
This works, but it may be a bit hackish.

comments

FabioCozzolino wrote Jul 19, 2010 at 9:16 AM

** Closed by FabioCozzolino 19/07/2010 01:16

FabioCozzolino wrote Jul 19, 2010 at 9:16 AM

fixed in release 0.2

wrote Jul 19, 2010 at 9:16 AM

FabioCozzolino wrote Jul 19, 2010 at 9:16 AM

fixed in release 0.2



** Closed by FabioCozzolino 19/07/2010 01:16

FabioCozzolino wrote Jul 19, 2010 at 9:16 AM

fixed in release 0.2

wrote Jul 19, 2010 at 9:20 AM

FabioCozzolino wrote Jul 19, 2010 at 9:27 AM

fixed in release 0.2



** Closed by FabioCozzolino 19/07/2010 01:20

FabioCozzolino wrote Jul 19, 2010 at 9:27 AM

fixed in release 0.2

wrote Feb 14, 2013 at 2:45 AM