[sqlapi-announce] SQLAPI++ 3.7.18 Oracle bug: An access violation exception with DateTime parameters and an execution of prepared statements.

  • From: Sergey Chumakov <support@xxxxxxxxxx>
  • To: sqlapi-announce@xxxxxxxxxxxxx
  • Date: Thu, 30 Nov 2006 14:36:05 +0200

Hi All,

Below the diff for oraClient.cpp that fixes Iora8Cursor::UnExecute()

diff -u -w -b -r1.25 oraClient.cpp
--- oraClient.cpp       11 Sep 2006 12:32:19 -0000      1.25
+++ oraClient.cpp       30 Nov 2006 12:23:32 -0000
@@ -3406,7 +3406,7 @@

                GetParamBuffer(Param, pValue, nDataBufSize);

-               if( NULL == pValue )
+               if( NULL == pValue || 0 == nDataBufSize )
                        continue;

                switch( Param.DataType() )
@@ -3431,7 +3431,7 @@

                GetFieldBuffer(nField, pValue, nDataBufSize);

-               if( NULL == pValue )
+               if( NULL == pValue || 0 == nDataBufSize )
                        continue;

                ub4 i;


--
Best regards,
Sergey Chumakov, SQLAPI++ development team

Other related posts:

  • » [sqlapi-announce] SQLAPI++ 3.7.18 Oracle bug: An access violation exception with DateTime parameters and an execution of prepared statements.