Issue Details (XML | Word | Printable)

Key: ODBC-182
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Potapchenko
Reporter: Jojakim Stahl
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ODBC Driver

Wrong set-up of empty-string in case of SQL_C_WCHAR and NULL-value

Created: 03/Nov/14 12:50 PM   Updated: 05/Jul/16 12:18 PM
Component/s: None
Affects Version/s: 2.0.2
Fix Version/s: 2.0.5

File Attachments: 1. Text File bug-182.patch (4 kB)



 Description  « Hide
In case of a NULL column value, several conversion functions for converting data to SQL_C_WCHAR set only the first byte (char) to '\0' instead of the first word (wchar_t)
Depending on Initial memory Contents, this results in a not correctly terminated = non-empty string.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jojakim Stahl added a comment - 03/Nov/14 01:17 PM
uploaded patch