- ODBC Nullable support and tests (Oracle and SQLServer tested)

- fix for Win7/MSVC80 _WIN32_WINNT macro detection
This commit is contained in:
Aleksandar Fabijanic
2012-09-16 03:00:52 +00:00
parent f2e8cef390
commit 7029c95e07
17 changed files with 152 additions and 22 deletions

View File

@@ -261,6 +261,15 @@ void ODBCMySQLTest::dropObject(const std::string& type, const std::string& name)
}
void ODBCMySQLTest::recreateNullableTable()
{
dropObject("TABLE", "NullableTest");
try { *_pSession << "CREATE TABLE NullableTest (EmptyString VARCHAR(30) NULL, EmptyInteger INTEGER NULL, EmptyFloat FLOAT NULL , EmptyDateTime TIMESTAMP NULL)", now; }
catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreatePersonTable()"); }
catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreatePersonTable()"); }
}
void ODBCMySQLTest::recreatePersonTable()
{
dropObject("TABLE", "Person");