Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty string is converted to NULL #41

Closed
GoogleCodeExporter opened this issue Jun 15, 2015 · 2 comments
Closed

Empty string is converted to NULL #41

GoogleCodeExporter opened this issue Jun 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

sorry, it is same as previous issue.

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant