From: George Tasker Date: Tue, 14 Sep 2004 11:08:21 +0000 (+0000) Subject: ClearMemberVar() did not correctly handle columns defined as SQL_C_LONG X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f292d0ec67b3b5dcd9cb03198b798e81680e4c7d?ds=inline 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 --- 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;