From fcf3321f44b0fdf676f41fbc8601e824ff951ff8 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Tue, 28 Dec 2004 22:27:45 +0000 Subject: [PATCH] Added SQL_WVARCHAR and SQL_WCHAR to the data types that the sample checks to see if they are supported by the datasource when the DATATYPES button is pressed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/db/dbtest.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/samples/db/dbtest.cpp b/samples/db/dbtest.cpp index 15c1398bef..8b91e280cd 100644 --- a/samples/db/dbtest.cpp +++ b/samples/db/dbtest.cpp @@ -616,6 +616,22 @@ void CheckSupportForAllDataTypes(wxDb *pDb) wxLogMessage(nativeDataTypeName); } #endif +#ifdef SQL_WVARCHAR + if (DataTypeSupported(pDb,SQL_WVARCHAR, &nativeDataTypeName)) + { + nativeDataTypeName = wxT("SQL_WVARCHAR (") + nativeDataTypeName; + nativeDataTypeName += wxT(")\n"); + wxLogMessage(nativeDataTypeName); + } +#endif +#ifdef SQL_WCHAR + if (DataTypeSupported(pDb,SQL_WCHAR, &nativeDataTypeName)) + { + nativeDataTypeName = wxT("SQL_WCHAR (") + nativeDataTypeName; + nativeDataTypeName += wxT(")\n"); + wxLogMessage(nativeDataTypeName); + } +#endif wxLogMessage(wxT("Done\n")); } // CheckSupportForAllDataTypes()