ODBCMySQLTest.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. //
  2. // ODBCMySQLTest.cpp
  3. //
  4. // $Id: //poco/Main/Data/ODBC/testsuite/src/ODBCMySQLTest.cpp#5 $
  5. //
  6. // Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
  7. // and Contributors.
  8. //
  9. // Permission is hereby granted, free of charge, to any person or organization
  10. // obtaining a copy of the software and accompanying documentation covered by
  11. // this license (the "Software") to use, reproduce, display, distribute,
  12. // execute, and transmit the Software, and to prepare derivative works of the
  13. // Software, and to permit third-parties to whom the Software is furnished to
  14. // do so, all subject to the following:
  15. //
  16. // The copyright notices in the Software and this entire statement, including
  17. // the above license grant, this restriction and the following disclaimer,
  18. // must be included in all copies of the Software, in whole or in part, and
  19. // all derivative works of the Software, unless such copies or derivative
  20. // works are solely in the form of machine-executable object code generated by
  21. // a source language processor.
  22. //
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  24. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  25. // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
  26. // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
  27. // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
  28. // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  29. // DEALINGS IN THE SOFTWARE.
  30. //
  31. #include "ODBCMySQLTest.h"
  32. #include "ODBCTest.h"
  33. #include "CppUnit/TestCaller.h"
  34. #include "CppUnit/TestSuite.h"
  35. #include "Poco/String.h"
  36. #include "Poco/Format.h"
  37. #include "Poco/Tuple.h"
  38. #include "Poco/Exception.h"
  39. #include "Poco/Data/BLOB.h"
  40. #include "Poco/Data/StatementImpl.h"
  41. #include "Poco/Data/ODBC/Connector.h"
  42. #include "Poco/Data/ODBC/Utility.h"
  43. #include "Poco/Data/ODBC/Diagnostics.h"
  44. #include "Poco/Data/ODBC/ODBCException.h"
  45. #include "Poco/Data/ODBC/ODBCStatementImpl.h"
  46. #include <sqltypes.h>
  47. #include <iostream>
  48. using namespace Poco::Data::Keywords;
  49. using Poco::Data::DataException;
  50. using Poco::Data::ODBC::Utility;
  51. using Poco::Data::ODBC::ConnectionException;
  52. using Poco::Data::ODBC::StatementException;
  53. using Poco::Data::ODBC::StatementDiagnostics;
  54. using Poco::format;
  55. using Poco::Tuple;
  56. using Poco::NotFoundException;
  57. #ifdef POCO_OS_FAMILY_WINDOWS
  58. #define MYSQL_ODBC_DRIVER "MySQL ODBC 3.51 Driver"
  59. #else
  60. #define MYSQL_ODBC_DRIVER "MySQL"
  61. #endif
  62. #define MYSQL_DSN "PocoDataMySQLTest"
  63. #define MYSQL_SERVER POCO_ODBC_TEST_DATABASE_SERVER
  64. #define MYSQL_DB "test"
  65. #define MYSQL_UID "root"
  66. #define MYSQL_PWD "mysql"
  67. ODBCTest::SessionPtr ODBCMySQLTest::_pSession;
  68. ODBCTest::ExecPtr ODBCMySQLTest::_pExecutor;
  69. std::string ODBCMySQLTest::_driver = MYSQL_ODBC_DRIVER;
  70. std::string ODBCMySQLTest::_dsn = MYSQL_DSN;
  71. std::string ODBCMySQLTest::_uid = MYSQL_UID;
  72. std::string ODBCMySQLTest::_pwd = MYSQL_PWD;
  73. std::string ODBCMySQLTest::_connectString = "DRIVER=" MYSQL_ODBC_DRIVER ";"
  74. "DATABASE=" MYSQL_DB ";"
  75. "SERVER=" MYSQL_SERVER ";"
  76. "UID=" MYSQL_UID ";"
  77. "PWD=" MYSQL_PWD ";";
  78. ODBCMySQLTest::ODBCMySQLTest(const std::string& name):
  79. ODBCTest(name, _pSession, _pExecutor, _dsn, _uid, _pwd, _connectString)
  80. {
  81. }
  82. ODBCMySQLTest::~ODBCMySQLTest()
  83. {
  84. }
  85. void ODBCMySQLTest::testBareboneODBC()
  86. {
  87. if (!_pSession) fail ("Test not available.");
  88. std::string tableCreateString = "CREATE TABLE Test "
  89. "(First VARCHAR(30),"
  90. "Second VARCHAR(30),"
  91. "Third VARBINARY(30),"
  92. "Fourth INTEGER,"
  93. "Fifth FLOAT,"
  94. "Sixth DATETIME)";
  95. _pExecutor->bareboneODBCTest(dbConnString(), tableCreateString, SQLExecutor::PB_IMMEDIATE, SQLExecutor::DE_MANUAL);
  96. _pExecutor->bareboneODBCTest(dbConnString(), tableCreateString, SQLExecutor::PB_IMMEDIATE, SQLExecutor::DE_BOUND);
  97. _pExecutor->bareboneODBCTest(dbConnString(), tableCreateString, SQLExecutor::PB_AT_EXEC, SQLExecutor::DE_MANUAL);
  98. _pExecutor->bareboneODBCTest(dbConnString(), tableCreateString, SQLExecutor::PB_AT_EXEC, SQLExecutor::DE_BOUND);
  99. /*
  100. MySQL supports batch statements as of 3.51.18
  101. http://bugs.mysql.com/bug.php?id=7445
  102. tableCreateString = "CREATE TABLE Test "
  103. "(First VARCHAR(30),"
  104. "Second INTEGER,"
  105. "Third FLOAT)";
  106. _pExecutor->bareboneODBCMultiResultTest(dbConnString(), tableCreateString, SQLExecutor::PB_IMMEDIATE, SQLExecutor::DE_MANUAL);
  107. _pExecutor->bareboneODBCMultiResultTest(dbConnString(), tableCreateString, SQLExecutor::PB_IMMEDIATE, SQLExecutor::DE_BOUND);
  108. _pExecutor->bareboneODBCMultiResultTest(dbConnString(), tableCreateString, SQLExecutor::PB_AT_EXEC, SQLExecutor::DE_MANUAL);
  109. _pExecutor->bareboneODBCMultiResultTest(dbConnString(), tableCreateString, SQLExecutor::PB_AT_EXEC, SQLExecutor::DE_BOUND);
  110. */
  111. }
  112. void ODBCMySQLTest::testBLOB()
  113. {
  114. if (!_pSession) fail ("Test not available.");
  115. const std::size_t maxFldSize = 65534;
  116. _pSession->setProperty("maxFieldSize", Poco::Any(maxFldSize-1));
  117. recreatePersonBLOBTable();
  118. try
  119. {
  120. _pExecutor->blob(maxFldSize);
  121. fail ("must fail");
  122. }
  123. catch (DataException&)
  124. {
  125. _pSession->setProperty("maxFieldSize", Poco::Any(maxFldSize));
  126. }
  127. for (int i = 0; i < 8;)
  128. {
  129. recreatePersonBLOBTable();
  130. _pSession->setFeature("autoBind", bindValue(i));
  131. _pSession->setFeature("autoExtract", bindValue(i+1));
  132. _pExecutor->blob(maxFldSize);
  133. i += 2;
  134. }
  135. recreatePersonBLOBTable();
  136. try
  137. {
  138. _pExecutor->blob(maxFldSize+1);
  139. fail ("must fail");
  140. }
  141. catch (DataException&) { }
  142. }
  143. void ODBCMySQLTest::testNull()
  144. {
  145. if (!_pSession) fail ("Test not available.");
  146. // test for NOT NULL violation exception
  147. for (int i = 0; i < 8;)
  148. {
  149. recreateNullsTable("NOT NULL");
  150. _pSession->setFeature("autoBind", bindValue(i));
  151. _pSession->setFeature("autoExtract", bindValue(i+1));
  152. _pExecutor->notNulls("HYT00");
  153. i += 2;
  154. }
  155. // test for null insertion
  156. for (int i = 0; i < 8;)
  157. {
  158. recreateNullsTable();
  159. _pSession->setFeature("autoBind", bindValue(i));
  160. _pSession->setFeature("autoExtract", bindValue(i+1));
  161. _pExecutor->nulls();
  162. i += 2;
  163. }
  164. }
  165. void ODBCMySQLTest::testStoredProcedure()
  166. {
  167. //MySQL is currently buggy in this area:
  168. // http://bugs.mysql.com/bug.php?id=17898
  169. // http://bugs.mysql.com/bug.php?id=27632
  170. // Additionally, the standard ODBC stored procedure call syntax
  171. // {call storedProcedure(?)} is currently (3.51.12.00) not supported.
  172. // See http://bugs.mysql.com/bug.php?id=26535
  173. // Poco::Data support for MySQL ODBC is postponed until the above
  174. // issues are resolved.
  175. }
  176. void ODBCMySQLTest::testStoredFunction()
  177. {
  178. //MySQL is currently buggy in this area:
  179. // http://bugs.mysql.com/bug.php?id=17898
  180. // http://bugs.mysql.com/bug.php?id=27632
  181. // Additionally, the standard ODBC stored procedure call syntax
  182. // {call storedProcedure(?)} is currently (3.51.12.00) not supported.
  183. // See http://bugs.mysql.com/bug.php?id=26535
  184. // Poco::Data support for MySQL ODBC is postponed until the above
  185. // issues are resolved.
  186. }
  187. void ODBCMySQLTest::testMultipleResults()
  188. {
  189. /*
  190. MySQL supports batch statements as of 3.51.18
  191. http://bugs.mysql.com/bug.php?id=7445
  192. if (!_pSession) fail ("Test not available.");
  193. for (int i = 0; i < 8;)
  194. {
  195. recreatePersonTable();
  196. _pSession->setFeature("autoBind", bindValue(i));
  197. _pSession->setFeature("autoExtract", bindValue(i+1));
  198. _pExecutor->multipleResults();
  199. i += 2;
  200. }
  201. */
  202. }
  203. void ODBCMySQLTest::dropObject(const std::string& type, const std::string& name)
  204. {
  205. *_pSession << format("DROP %s IF EXISTS %s", type, name), now;
  206. }
  207. void ODBCMySQLTest::recreatePersonTable()
  208. {
  209. dropObject("TABLE", "Person");
  210. try { *_pSession << "CREATE TABLE Person (LastName VARCHAR(30), FirstName VARCHAR(30), Address VARCHAR(30), Age INTEGER)", now; }
  211. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreatePersonTable()"); }
  212. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreatePersonTable()"); }
  213. }
  214. void ODBCMySQLTest::recreatePersonBLOBTable()
  215. {
  216. dropObject("TABLE", "Person");
  217. try { *_pSession << "CREATE TABLE Person (LastName VARCHAR(30), FirstName VARCHAR(30), Address VARCHAR(30), Image BLOB)", now; }
  218. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreatePersonBLOBTable()"); }
  219. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreatePersonBLOBTable()"); }
  220. }
  221. void ODBCMySQLTest::recreatePersonDateTable()
  222. {
  223. dropObject("TABLE", "Person");
  224. try { *_pSession << "CREATE TABLE Person (LastName VARCHAR(30), FirstName VARCHAR(30), Address VARCHAR(30), BornDate DATE)", now; }
  225. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreatePersonDateTable()"); }
  226. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreatePersonDateTable()"); }
  227. }
  228. void ODBCMySQLTest::recreatePersonTimeTable()
  229. {
  230. dropObject("TABLE", "Person");
  231. try { *_pSession << "CREATE TABLE Person (LastName VARCHAR(30), FirstName VARCHAR(30), Address VARCHAR(30), BornTime TIME)", now; }
  232. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreatePersonTimeTable()"); }
  233. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreatePersonTimeTable()"); }
  234. }
  235. void ODBCMySQLTest::recreatePersonDateTimeTable()
  236. {
  237. dropObject("TABLE", "Person");
  238. try { *_pSession << "CREATE TABLE Person (LastName VARCHAR(30), FirstName VARCHAR(30), Address VARCHAR(30), Born DATETIME)", now; }
  239. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreatePersonDateTimeTable()"); }
  240. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreatePersonDateTimeTable()"); }
  241. }
  242. void ODBCMySQLTest::recreateIntsTable()
  243. {
  244. dropObject("TABLE", "Strings");
  245. try { *_pSession << "CREATE TABLE Strings (str INTEGER)", now; }
  246. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateIntsTable()"); }
  247. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateIntsTable()"); }
  248. }
  249. void ODBCMySQLTest::recreateStringsTable()
  250. {
  251. dropObject("TABLE", "Strings");
  252. try { *_pSession << "CREATE TABLE Strings (str VARCHAR(30))", now; }
  253. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateStringsTable()"); }
  254. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateStringsTable()"); }
  255. }
  256. void ODBCMySQLTest::recreateFloatsTable()
  257. {
  258. dropObject("TABLE", "Strings");
  259. try { *_pSession << "CREATE TABLE Strings (str FLOAT)", now; }
  260. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateFloatsTable()"); }
  261. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateFloatsTable()"); }
  262. }
  263. void ODBCMySQLTest::recreateTuplesTable()
  264. {
  265. dropObject("TABLE", "Tuples");
  266. try { *_pSession << "CREATE TABLE Tuples "
  267. "(i0 INTEGER, i1 INTEGER, i2 INTEGER, i3 INTEGER, i4 INTEGER, i5 INTEGER, i6 INTEGER, "
  268. "i7 INTEGER, i8 INTEGER, i9 INTEGER, i10 INTEGER, i11 INTEGER, i12 INTEGER, i13 INTEGER,"
  269. "i14 INTEGER, i15 INTEGER, i16 INTEGER, i17 INTEGER, i18 INTEGER, i19 INTEGER)", now; }
  270. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateTuplesTable()"); }
  271. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateTuplesTable()"); }
  272. }
  273. void ODBCMySQLTest::recreateVectorsTable()
  274. {
  275. dropObject("TABLE", "Vectors");
  276. try { *_pSession << "CREATE TABLE Vectors (i0 INTEGER, flt0 FLOAT, str0 VARCHAR(30))", now; }
  277. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateVectorsTable()"); }
  278. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateVectorsTable()"); }
  279. }
  280. void ODBCMySQLTest::recreateAnysTable()
  281. {
  282. dropObject("TABLE", "Anys");
  283. try { *_pSession << "CREATE TABLE Anys (i0 INTEGER, flt0 DOUBLE, str0 VARCHAR(30))", now; }
  284. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateAnysTable()"); }
  285. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateAnysTable()"); }
  286. }
  287. void ODBCMySQLTest::recreateNullsTable(const std::string& notNull)
  288. {
  289. dropObject("TABLE", "NullTest");
  290. try { *_pSession << format("CREATE TABLE NullTest (i INTEGER %s, r FLOAT %s, v VARCHAR(30) %s)",
  291. notNull,
  292. notNull,
  293. notNull), now; }
  294. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateNullsTable()"); }
  295. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateNullsTable()"); }
  296. }
  297. void ODBCMySQLTest::recreateMiscTable()
  298. {
  299. dropObject("TABLE", "MiscTest");
  300. try { *_pSession << "CREATE TABLE MiscTest "
  301. "(First VARCHAR(30),"
  302. "Second VARBINARY(30),"
  303. "Third INTEGER,"
  304. "Fourth FLOAT,"
  305. "Fifth DATETIME)", now; }
  306. catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateNullsTable()"); }
  307. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateNullsTable()"); }
  308. }
  309. void ODBCMySQLTest::recreateLogTable()
  310. {
  311. dropObject("TABLE", "T_POCO_LOG");
  312. dropObject("TABLE", "T_POCO_LOG_ARCHIVE");
  313. try
  314. {
  315. std::string sql = "CREATE TABLE %s "
  316. "(Source VARCHAR(100),"
  317. "Name VARCHAR(100),"
  318. "ProcessId INTEGER,"
  319. "Thread VARCHAR(100), "
  320. "ThreadId INTEGER,"
  321. "Priority INTEGER,"
  322. "Text VARCHAR(100),"
  323. "DateTime DATETIME)";
  324. session() << sql, "T_POCO_LOG", now;
  325. session() << sql, "T_POCO_LOG_ARCHIVE", now;
  326. } catch(ConnectionException& ce){ std::cout << ce.toString() << std::endl; fail ("recreateLogTable()"); }
  327. catch(StatementException& se){ std::cout << se.toString() << std::endl; fail ("recreateLogTable()"); }
  328. }
  329. CppUnit::Test* ODBCMySQLTest::suite()
  330. {
  331. if (_pSession = init(_driver, _dsn, _uid, _pwd, _connectString))
  332. {
  333. std::cout << "*** Connected to [" << _driver << "] test database." << std::endl;
  334. _pExecutor = new SQLExecutor(_driver + " SQL Executor", _pSession);
  335. CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("ODBCMySQLTest");
  336. CppUnit_addTest(pSuite, ODBCMySQLTest, testBareboneODBC);
  337. CppUnit_addTest(pSuite, ODBCMySQLTest, testSimpleAccess);
  338. CppUnit_addTest(pSuite, ODBCMySQLTest, testComplexType);
  339. CppUnit_addTest(pSuite, ODBCMySQLTest, testSimpleAccessVector);
  340. CppUnit_addTest(pSuite, ODBCMySQLTest, testComplexTypeVector);
  341. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertVector);
  342. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertEmptyVector);
  343. CppUnit_addTest(pSuite, ODBCMySQLTest, testSimpleAccessList);
  344. CppUnit_addTest(pSuite, ODBCMySQLTest, testComplexTypeList);
  345. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertList);
  346. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertEmptyList);
  347. CppUnit_addTest(pSuite, ODBCMySQLTest, testSimpleAccessDeque);
  348. CppUnit_addTest(pSuite, ODBCMySQLTest, testComplexTypeDeque);
  349. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertDeque);
  350. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertEmptyDeque);
  351. CppUnit_addTest(pSuite, ODBCMySQLTest, testAffectedRows);
  352. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertSingleBulk);
  353. CppUnit_addTest(pSuite, ODBCMySQLTest, testInsertSingleBulkVec);
  354. CppUnit_addTest(pSuite, ODBCMySQLTest, testLimit);
  355. CppUnit_addTest(pSuite, ODBCMySQLTest, testLimitOnce);
  356. CppUnit_addTest(pSuite, ODBCMySQLTest, testLimitPrepare);
  357. CppUnit_addTest(pSuite, ODBCMySQLTest, testLimitZero);
  358. CppUnit_addTest(pSuite, ODBCMySQLTest, testPrepare);
  359. //CppUnit_addTest(pSuite, ODBCMySQLTest, testBulk);
  360. //CppUnit_addTest(pSuite, ODBCMySQLTest, testBulkPerformance);
  361. CppUnit_addTest(pSuite, ODBCMySQLTest, testSetSimple);
  362. CppUnit_addTest(pSuite, ODBCMySQLTest, testSetComplex);
  363. CppUnit_addTest(pSuite, ODBCMySQLTest, testSetComplexUnique);
  364. CppUnit_addTest(pSuite, ODBCMySQLTest, testMultiSetSimple);
  365. CppUnit_addTest(pSuite, ODBCMySQLTest, testMultiSetComplex);
  366. CppUnit_addTest(pSuite, ODBCMySQLTest, testMapComplex);
  367. CppUnit_addTest(pSuite, ODBCMySQLTest, testMapComplexUnique);
  368. CppUnit_addTest(pSuite, ODBCMySQLTest, testMultiMapComplex);
  369. CppUnit_addTest(pSuite, ODBCMySQLTest, testSelectIntoSingle);
  370. CppUnit_addTest(pSuite, ODBCMySQLTest, testSelectIntoSingleStep);
  371. CppUnit_addTest(pSuite, ODBCMySQLTest, testSelectIntoSingleFail);
  372. CppUnit_addTest(pSuite, ODBCMySQLTest, testLowerLimitOk);
  373. CppUnit_addTest(pSuite, ODBCMySQLTest, testLowerLimitFail);
  374. CppUnit_addTest(pSuite, ODBCMySQLTest, testCombinedLimits);
  375. CppUnit_addTest(pSuite, ODBCMySQLTest, testCombinedIllegalLimits);
  376. CppUnit_addTest(pSuite, ODBCMySQLTest, testRange);
  377. CppUnit_addTest(pSuite, ODBCMySQLTest, testIllegalRange);
  378. CppUnit_addTest(pSuite, ODBCMySQLTest, testSingleSelect);
  379. CppUnit_addTest(pSuite, ODBCMySQLTest, testEmptyDB);
  380. CppUnit_addTest(pSuite, ODBCMySQLTest, testBLOB);
  381. CppUnit_addTest(pSuite, ODBCMySQLTest, testBLOBContainer);
  382. CppUnit_addTest(pSuite, ODBCMySQLTest, testBLOBStmt);
  383. CppUnit_addTest(pSuite, ODBCMySQLTest, testDate);
  384. CppUnit_addTest(pSuite, ODBCMySQLTest, testTime);
  385. CppUnit_addTest(pSuite, ODBCMySQLTest, testDateTime);
  386. CppUnit_addTest(pSuite, ODBCMySQLTest, testFloat);
  387. CppUnit_addTest(pSuite, ODBCMySQLTest, testDouble);
  388. CppUnit_addTest(pSuite, ODBCMySQLTest, testTuple);
  389. CppUnit_addTest(pSuite, ODBCMySQLTest, testTupleVector);
  390. CppUnit_addTest(pSuite, ODBCMySQLTest, testStoredProcedure);
  391. CppUnit_addTest(pSuite, ODBCMySQLTest, testStoredFunction);
  392. CppUnit_addTest(pSuite, ODBCMySQLTest, testInternalExtraction);
  393. //CppUnit_addTest(pSuite, ODBCOracleTest, testInternalBulkExtraction);
  394. CppUnit_addTest(pSuite, ODBCMySQLTest, testInternalStorageType);
  395. CppUnit_addTest(pSuite, ODBCMySQLTest, testNull);
  396. CppUnit_addTest(pSuite, ODBCMySQLTest, testRowIterator);
  397. CppUnit_addTest(pSuite, ODBCMySQLTest, testAsync);
  398. CppUnit_addTest(pSuite, ODBCMySQLTest, testAny);
  399. CppUnit_addTest(pSuite, ODBCMySQLTest, testDynamicAny);
  400. CppUnit_addTest(pSuite, ODBCMySQLTest, testMultipleResults);
  401. CppUnit_addTest(pSuite, ODBCMySQLTest, testSQLChannel);
  402. CppUnit_addTest(pSuite, ODBCMySQLTest, testSQLLogger);
  403. return pSuite;
  404. }
  405. return 0;
  406. }