fixed compilation under Unix where SQL_DATETIME is not defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
092f753690
commit
a327b52090
@ -722,13 +722,17 @@ bool wxDb::Open(const wxString &Dsn, const wxString &Uid, const wxString &AuthSt
|
|||||||
{
|
{
|
||||||
if (!getDataTypeInfo(SQL_DATE,typeInfDate))
|
if (!getDataTypeInfo(SQL_DATE,typeInfDate))
|
||||||
{
|
{
|
||||||
if (!getDataTypeInfo(SQL_DATETIME,typeInfDate))
|
#ifdef SQL_DATETIME
|
||||||
|
if (getDataTypeInfo(SQL_DATETIME,typeInfDate))
|
||||||
|
{
|
||||||
|
typeInfDate.FsqlType = SQL_TIME;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif // SQL_DATETIME defined
|
||||||
{
|
{
|
||||||
if (failOnDataTypeUnsupported)
|
if (failOnDataTypeUnsupported)
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
typeInfDate.FsqlType = SQL_TIME;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
typeInfDate.FsqlType = SQL_DATE;
|
typeInfDate.FsqlType = SQL_DATE;
|
||||||
|
Loading…
Reference in New Issue
Block a user