-
Notifications
You must be signed in to change notification settings - Fork 102
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 strings are selected as NULL #18
Comments
Sorry, this is a bug in freetds that was found in 2006 and apparently never fixed. |
After reading the thread more closely, they used stock freetds 0.64 and fixed the php library. I'll look at tds fdw to see if I can find a similar problem. |
OK, it's not a problem with tds_fdw. I set my tds version to auto from 7.2, and empty nvarchars are coming through as empty varchars. |
Setting the tds version to auto caused long nvarchars to be truncated to 255 characters. Setting the tds version to 8.0 fixed the truncation, but once again empty strings are being selected as NULL. |
Fixed: b5f678c |
Fixed in 1.0.3. |
Hello,
In SQL Server 2008 R2 I have some nvarchar fields that are nullable. When they are empty strings, they are selected as NULL in PostgreSQL.
Jeff
The text was updated successfully, but these errors were encountered: