FirebirdSQL/firebird-odbc-driver

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

firebird-automations opened this issue · 8 comments

Submitted by: Jojakim Stahl (jstahl)

Attachments:
bug-182.patch

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.

Commits: 0137121 1657494

Modified by: Jojakim Stahl (jstahl)

Version: 2.0.2 [ 10465 ]

Commented by: Jojakim Stahl (jstahl)

uploaded patch

Modified by: Jojakim Stahl (jstahl)

Attachment: bug-182.patch [ 12614 ]

Modified by: @alexpotapchenko

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.0.5 [ 10771 ]

Modified by: @alexpotapchenko

status: Resolved [ 5 ] => Reopened [ 4 ]

resolution: Fixed [ 1 ] =>

Modified by: @alexpotapchenko

status: Reopened [ 4 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

Modified by: @alexpotapchenko

status: Closed [ 6 ] => Reopened [ 4 ]

resolution: Fixed [ 1 ] =>

Modified by: @alexpotapchenko

status: Reopened [ 4 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]