FirebirdSQL/firebird-odbc-driver

SQLGetData with zero-length BLOB

aafemt opened this issue · 2 comments

If a BLOB contains zero-length data, SQLGetData() may return garbage on first call (if target is SQL_C_WCHAR) and surely return garbage instead of SQL_NO_DATA on second call (or even crash).

You can pick the fix from aafemt@387c1ab if you wish.

You can pick the fix from aafemt@387c1ab if you wish.

Patch applied to a beta-version branch (https://github.com/FirebirdSQL/firebird-odbc-driver/wiki)

Closed