Skip to content

Commit

Permalink
Fix for ODBC-149. Input double parameters are modified when saving th…
Browse files Browse the repository at this point in the history
…em as NUMERIC values
  • Loading branch information
alexpotapchenko committed Aug 4, 2012
1 parent d877de0 commit d5cd549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OdbcConvert.cpp
Expand Up @@ -1217,7 +1217,7 @@ int OdbcConvert::conv##TYPE_FROM##To##TYPE_TO(DescRecord * from, DescRecord * to
\
ODBCCONVERT_CHECKNULL_COMMON(C_TYPE_TO); \
\
C_TYPE_FROM &valFrom = *(C_TYPE_FROM*)getAdressBindDataFrom((char*)from->dataPtr); \
C_TYPE_FROM valFrom = *(C_TYPE_FROM*)getAdressBindDataFrom((char*)from->dataPtr); \
if ( to->scale ) \
valFrom *= (C_TYPE_FROM)(QUAD)listScale[to->scale]; \
if ( valFrom < 0 )valFrom -= 0.5; \
Expand Down

0 comments on commit d5cd549

Please sign in to comment.