mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-12-06 20:15:34 +00:00
fixes for 1.3.3 (see sf bugtracker)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// MySQLTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Data/MySQL/testsuite/src/MySQLTest.cpp#4 $
|
||||
// $Id: //poco/1.3/Data/MySQL/testsuite/src/MySQLTest.cpp#1 $
|
||||
//
|
||||
// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
@@ -43,15 +43,18 @@
|
||||
#include "Poco/Data/MySQL/MySQLException.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using namespace Poco::Data;
|
||||
using Poco::Data::MySQL::ConnectionException;
|
||||
using Poco::Data::MySQL::StatementException;
|
||||
using Poco::format;
|
||||
using Poco::NotFoundException;
|
||||
|
||||
|
||||
Poco::SharedPtr<Poco::Data::Session> MySQLTest::_pSession = 0;
|
||||
Poco::SharedPtr<SQLExecutor> MySQLTest::_pExecutor = 0;
|
||||
|
||||
|
||||
// Parameters for barebone-test
|
||||
#define MYSQL_USER "root"
|
||||
#define MYSQL_PWD ""
|
||||
@@ -59,6 +62,7 @@ Poco::SharedPtr<SQLExecutor> MySQLTest::_pExecutor = 0;
|
||||
#define MYSQL_PORT 3306
|
||||
#define MYSQL_DB "test"
|
||||
|
||||
|
||||
// Connection string to POCO
|
||||
std::string MySQLTest::_dbConnString = "user=root;password=;db=test;compress=true;auto-reconnect=true";
|
||||
|
||||
@@ -363,7 +367,6 @@ void MySQLTest::testCombinedLimits()
|
||||
}
|
||||
|
||||
|
||||
|
||||
void MySQLTest::testRange()
|
||||
{
|
||||
if (!_pSession) fail ("Test not available.");
|
||||
|
||||
Reference in New Issue
Block a user