This commit is contained in:
Aleksandar Fabijanic 2007-08-29 17:07:52 +00:00
parent 3b66a355c2
commit ab1b6c29ca
3 changed files with 16 additions and 6 deletions

View File

@ -1224,8 +1224,11 @@ bool ODBCPostgreSQLTest::init(const std::string& driver, const std::string& dsn)
CppUnit::Test* ODBCPostgreSQLTest::suite() CppUnit::Test* ODBCPostgreSQLTest::suite()
{ {
#ifndef POCO_ODBC_USE_MAMMOTH_NG
if (init("PostgreSQL ANSI", "PocoDataPostgreSQLTest")) if (init("PostgreSQL ANSI", "PocoDataPostgreSQLTest"))
//if (init("Mammoth ODBCng Beta", "Mammoth ODBCng Beta")) #else
if (init("Mammoth ODBCng Beta", "Mammoth ODBCng Beta"))
#endif
{ {
CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("ODBCPostgreSQLTest"); CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("ODBCPostgreSQLTest");

View File

@ -44,15 +44,21 @@
#include "SQLExecutor.h" #include "SQLExecutor.h"
// uncomment to use Mammoth ODBCng driver
//#define POCO_ODBC_USE_MAMMOTH_NG
class ODBCPostgreSQLTest: public CppUnit::TestCase class ODBCPostgreSQLTest: public CppUnit::TestCase
/// PostgreSQL ODBC test class /// PostgreSQL ODBC test class
/// Tested: /// Tested:
/// ///
/// Driver | DB | OS | Driver Manager |Notes /// Driver | DB | OS | Driver Manager |Notes
/// --------------+-------------------+-------------------------------------------+--------------------+-------------------------- /// ---------------+----------------------+-------------------------------------------+--------------------+--------------------------
/// 07.03.02.60 | PostgreSQL 7.4.6 | MS Windows XP Professional x64 v.2003/SP1 | 3.526.3959.0 | BLOB fails (missing 'lo') /// 07.03.02.60 | PostgreSQL 7.4.6 | MS Windows XP Professional x64 v.2003/SP1 | 3.526.3959.0 | BLOB fails (missing 'lo')
/// 08.01.02.00 | PostgreSQL 8.1.5-1 | MS Windows XP Professional x64 v.2003/SP1 | 3.526.3959.0 | /// 08.01.02.00 | PostgreSQL 8.1.5-1 | MS Windows XP Professional x64 v.2003/SP1 | 3.526.3959.0 |
/// 1:08.01.0200-2 | PostgreSQL 8.1.5-1 | Ubuntu 7.04 (2.6.20-15-generic #2 SMP) | unixODBC 2.2.11.-13| /// 1:08.01.0200-2 | PostgreSQL 8.1.5-1 | Ubuntu 7.04 (2.6.20-15-generic #2 SMP) | unixODBC 2.2.11.-13|
/// Mammoth ODBCng | | | |
/// (0.99.00.122) | PostgreSQL 8.1.5-1 | MS Windows XP Professional x64 v.2003/SP1 | 3.526.3959.0 |
/// ///
{ {
public: public:

View File

@ -57,6 +57,7 @@ CppUnit::Test* ODBCTestSuite::suite()
// System error 127 is "The specified procedure could not be found." // System error 127 is "The specified procedure could not be found."
// //
// Workaround is to connect to DB2 after connecting to PostgreSQL. // Workaround is to connect to DB2 after connecting to PostgreSQL.
// This problem does not manifest with Mammoth ODBCng PostgreSQL driver.
// //
// 2) When Oracle driver is found, but no tests executed, the test application does not exit cleanly. // 2) When Oracle driver is found, but no tests executed, the test application does not exit cleanly.
// //