Skip to content

Commit

Permalink
Fix for ODBC-190. ODBC function SQLGetInfo fails if SQL_KEYWORDS Info…
Browse files Browse the repository at this point in the history
…Type is requested
  • Loading branch information
alexpotapchenko committed Jul 14, 2015
1 parent 5f75747 commit 64b1ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MainUnicode.cpp
Expand Up @@ -1163,7 +1163,7 @@ SQLRETURN SQL_API SQLSetDescFieldW( SQLHDESC hDesc,
if ( bufferLength == SQL_NTS )
len = (int)wcslen( (const wchar_t*)value );
else
len = bufferLength / 2;
len = bufferLength / sizeof(wchar_t);

ConvertingString<> Value( GETCONNECT_DESC( hDesc ), (SQLWCHAR *)value, len );

Expand Down

0 comments on commit 64b1ce1

Please sign in to comment.