Skip to content

Commit

Permalink
MSTKPROJ-1416 test additions and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostya Lutsenko committed Apr 17, 2015
1 parent 247ce30 commit a84eab8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Data/ODBC/testsuite/src/ODBCDB2Test.cpp
Expand Up @@ -64,31 +64,34 @@ static std::string db2Driver()
# endif
}

#define DB2_DSN ""
#define DB2_ALIAS "NT043005"
#define DB2_DB "TEMPDB"
# define DB2_SERVER "visadb28"
# define DB2_DBINST "v10schm4"
# define DB2_DB "MSTK_TEST"
# define DB2_PORT "7395"
#define DB2_UID ""
#define DB2_PWD ""
#endif

ODBCTest::SessionPtr ODBCDB2Test::_pSession;
ODBCTest::ExecPtr ODBCDB2Test::_pExecutor;
std::string ODBCDB2Test::_driver = db2Driver();
std::string ODBCDB2Test::_dsn = DB2_DSN;
std::string ODBCDB2Test::_dsn = "nytd_mstktest_v95_v10";
std::string ODBCDB2Test::_uid = DB2_UID;
std::string ODBCDB2Test::_pwd = DB2_PWD;
#if 0
std::string ODBCDB2Test::_connectString = "Driver=" DB2_ODBC_DRIVER ";"
"Database=" DB2_DB ";"
#if 1
std::string ODBCDB2Test::_connectString = "Driver=" + db2Driver() + ";"
"Database=" DB2_DBINST ";"
"Hostname=" DB2_SERVER ";"
"Port=" DB2_PORT ";"
"CurrentSchema=" DB2_DB ";"
"Protocol=TCPIP;"
"Uid=" DB2_UID ";"
"Pwd=" DB2_PWD ";";
#else
std::string ODBCDB2Test::_connectString = "Driver=" + db2Driver() +
";" "DSN=" DB2_DSN
";" "DBALIAS=" DB2_ALIAS
";" "CurrentSchema=" "TEMPDB"
";" "CurrentSchema=" DB2_DB
";" "Uid=" DB2_UID
";" "Pwd=" DB2_PWD
;
Expand Down
10 changes: 10 additions & 0 deletions Data/ODBC/testsuite/src/ODBCSybaseTest.cpp
Expand Up @@ -333,6 +333,16 @@ void SybaseODBC::testStoredProcedure()
dropObject("procedure", nm);
assert(0 == rs.rowCount());
}
{
Poco::Data::Statement stat(session());
stat << "{ exec -- @exType='mdExch', @exList='TRAD' }", Poco::Data::Keywords::limit(1);
while (!stat.done())
{
stat.execute();
Poco::Data::RecordSet rs(stat);
assert(0 == rs.rowCount());
}
}

session() << "create procedure " + nm + " "
"@outParam int output "
Expand Down

0 comments on commit a84eab8

Please sign in to comment.