Blind fix to lack of sql types.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
925e9792d3
commit
39d350d692
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user