[sqlapi-announce] SQLAPI++ 3.7.18 SQLBase v.10 bug: An access violation exception at sqldes() C API function.

  • From: Sergey Chumakov <support@xxxxxxxxxx>
  • To: sqlapi-announce@xxxxxxxxxxxxx
  • Date: Sat, 02 Dec 2006 12:56:29 +0200

Hi All,

Below the diff for sbClient.cpp that fixes the problem:

diff -u -w -b -r1.10 -r1.11
--- sbClient.cpp        10 Jul 2006 10:24:21 -0000      1.10
+++ sbClient.cpp        2 Dec 2006 10:36:58 -0000       1.11
@@ -654,6 +654,7 @@
                SQLTSCA sca;

                SQLTDDT ddt;
+               SQLTDDL ddl;
                bool bRequired;
        } *m_pFieldDescr;

@@ -1484,11 +1485,11 @@
                        m_handles.m_cur,
                        (SQLTSLC)(nField+1),
                        &m_pFieldDescr[nField].ddt,
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL,
-                       NULL));
+                       &m_pFieldDescr[nField].ddl,
+                       (SQLTCHP)m_pFieldDescr[nField].ch,
+                       &m_pFieldDescr[nField].chl,
+                       &m_pFieldDescr[nField].pre,
+                       &m_pFieldDescr[nField].sca));

                // all we need from gdidef is nullable ind
                gdidef def;


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



Other related posts:

  • » [sqlapi-announce] SQLAPI++ 3.7.18 SQLBase v.10 bug: An access violation exception at sqldes() C API function.