Skip to content

Commit

Permalink
Fix for ODBC-139. Crash when inserting values via prepared statements…
Browse files Browse the repository at this point in the history
…, bound integer value to char column
  • Loading branch information
alexpotapchenko committed Feb 15, 2012
1 parent ec2aa06 commit b994cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OdbcConvert.cpp
Expand Up @@ -991,7 +991,7 @@ SQLLEN * OdbcConvert::getAdressBindIndTo(char * pointer)
}

#define ODBCCONVERT_CHECKNULL(pointerTo) \
if( *(short*)indicatorFrom == SQL_NULL_DATA ) \
if( indicatorFrom && *(short*)indicatorFrom == SQL_NULL_DATA ) \
{ \
if ( indicatorTo ) \
*indicatorTo = SQL_NULL_DATA; \
Expand Down

0 comments on commit b994cee

Please sign in to comment.