]> git.saurik.com Git - wxWidgets.git/commitdiff
ClearMemberVar() did not correctly handle columns defined as SQL_C_LONG
authorGeorge Tasker <gtasker@allenbrook.com>
Tue, 14 Sep 2004 11:08:21 +0000 (11:08 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Tue, 14 Sep 2004 11:08:21 +0000 (11:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dbtable.cpp

index bfc966f81131f747a57fde358839cfeaa043c6da..e56bedcc2594665c6d567e5af1e59c31c3b349e7 100644 (file)
@@ -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;