djhenderson / odbc

Automatically exported from code.google.com/p/odbc
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Empty string is converted to NULL #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Access sqlserver database through odbc, a table with non-null string field, 
when the field's value is empty string, it will return null when retrieve it's 
value.

It is caused by line 134 of file "column.go". When enter BaseColumn.Value, it 
should not be null, because line 232 of file "column.go" filter out null 
situation.

Modify line 134 of file "column.go" to 'return "", nil' can solve this problem.

Original issue reported on code.google.com by guota...@gmail.com on 27 Apr 2014 at 2:54

GoogleCodeExporter commented 9 years ago
sorry, it is same as previous issue.

Original comment by guota...@gmail.com on 27 Apr 2014 at 2:58

GoogleCodeExporter commented 9 years ago
I think so, too. Would you like to review the fix 
https://codereview.appspot.com/87490043/ ?

Alex

Original comment by alex.bra...@gmail.com on 28 Apr 2014 at 11:33