From 39d350d69215ca718287aec92fb58246059fed54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Wed, 6 Oct 2004 20:58:46 +0000 Subject: [PATCH] Blind fix to lack of sql types. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dbtable.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index e717acf67d..c6bc966f6d 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -2767,9 +2767,9 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val) DATE_STRUCT *dataptr = (DATE_STRUCT *)colDefs[colNo].PtrDataObj; - dataptr->year = (SQLSMALLINT)dateval.GetYear(); - dataptr->month = (SQLUSMALLINT)(dateval.GetMonth()+1); - dataptr->day = (SQLUSMALLINT)dateval.GetDay(); + dataptr->year = (SWORD)dateval.GetYear(); + dataptr->month = (UWORD)(dateval.GetMonth()+1); + dataptr->day = (UWORD)dateval.GetDay(); } break; case SQL_C_TIME: @@ -2786,9 +2786,9 @@ void wxDbTable::SetCol(const int colNo, const wxVariant val) { TIMESTAMP_STRUCT *dataptr = (TIMESTAMP_STRUCT *)colDefs[colNo].PtrDataObj; - dataptr->year = (SQLSMALLINT)dateval.GetYear(); - dataptr->month = (SQLUSMALLINT)(dateval.GetMonth()+1); - dataptr->day = (SQLUSMALLINT)dateval.GetDay(); + dataptr->year = (SWORD)dateval.GetYear(); + dataptr->month = (UWORD)(dateval.GetMonth()+1); + dataptr->day = (UWORD)dateval.GetDay(); dataptr->hour = dateval.GetHour(); dataptr->minute = dateval.GetMinute();