From: Alexander P. <ale...@us...> - 2012-08-04 10:03:24
|
Update of /cvsroot/firebird/OdbcJdbc In directory vz-cvs-3.sog:/tmp/cvs-serv1606 Modified Files: Tag: B2_0_0 OdbcConvert.cpp Log Message: Fix for ODBC-149. Input double parameters are modified when saving them as NUMERIC values Index: OdbcConvert.cpp =================================================================== RCS file: /cvsroot/firebird/OdbcJdbc/OdbcConvert.cpp,v retrieving revision 1.10.2.26.2.10 retrieving revision 1.10.2.26.2.11 diff -u -d -r1.10.2.26.2.10 -r1.10.2.26.2.11 --- OdbcConvert.cpp 1 Mar 2012 10:33:55 -0000 1.10.2.26.2.10 +++ OdbcConvert.cpp 4 Aug 2012 10:03:22 -0000 1.10.2.26.2.11 @@ -1217,7 +1217,7 @@ \ 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; \ |