From f292d0ec67b3b5dcd9cb03198b798e81680e4c7d Mon Sep 17 00:00:00 2001 From: George Tasker Date: Tue, 14 Sep 2004 11:08:21 +0000 Subject: [PATCH] ClearMemberVar() did not correctly handle columns defined as SQL_C_LONG git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dbtable.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index bfc966f811..e56bedcc25 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -2179,6 +2179,7 @@ void wxDbTable::ClearMemberVar(UWORD colNo, bool setToNull) case SQL_C_USHORT: *((UWORD*) colDefs[colNo].PtrDataObj) = 0; break; + case SQL_C_LONG: case SQL_C_SLONG: *((SDWORD *) colDefs[colNo].PtrDataObj) = 0; break; -- 2.47.2