mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-17 01:37:18 +02:00
.github
bin
module
vendor
CPR
CivetWeb
ConcurrentQueue
Fmt
MDBC
MaxmindDB
POCO
ActiveRecord
ApacheConnector
CppParser
CppUnit
Crypto
Data
MySQL
ODBC
cmake
include
src
testsuite
src
Driver.cpp
ODBCAccessTest.cpp
ODBCAccessTest.h
ODBCDB2Test.cpp
ODBCDB2Test.h
ODBCMySQLTest.cpp
ODBCMySQLTest.h
ODBCOracleTest.cpp
ODBCOracleTest.h
ODBCPostgreSQLTest.cpp
ODBCPostgreSQLTest.h
ODBCSQLServerTest.cpp
ODBCSQLServerTest.h
ODBCSQLiteTest.cpp
ODBCSQLiteTest.h
ODBCTest.cpp
ODBCTest.h
ODBCTestSuite.cpp
ODBCTestSuite.h
SQLExecutor.cpp
SQLExecutor.h
WinDriver.cpp
CMakeLists.txt
Makefile
TestSuite.progen
TestSuite_VS90.vcproj
TestSuite_vs140.vcxproj
TestSuite_vs140.vcxproj.filters
TestSuite_vs150.vcxproj
TestSuite_vs150.vcxproj.filters
TestSuite_vs160.vcxproj
TestSuite_vs160.vcxproj.filters
test.mdb
CMakeLists.txt
Makefile
ODBC.make
ODBC.progen
ODBC_VS90.sln
ODBC_VS90.vcproj
ODBC_vs140.sln
ODBC_vs140.vcxproj
ODBC_vs140.vcxproj.filters
ODBC_vs150.sln
ODBC_vs150.vcxproj
ODBC_vs150.vcxproj.filters
ODBC_vs160.sln
ODBC_vs160.vcxproj
ODBC_vs160.vcxproj.filters
dependencies
PostgreSQL
SQLite
cmake
doc
include
samples
src
testsuite
CMakeLists.txt
Data.progen
Data_VS90.sln
Data_VS90.vcproj
Data_vs140.sln
Data_vs140.vcxproj
Data_vs140.vcxproj.filters
Data_vs150.sln
Data_vs150.vcxproj
Data_vs150.vcxproj.filters
Data_vs160.sln
Data_vs160.vcxproj
Data_vs160.vcxproj.filters
Makefile
dependencies
Encodings
Foundation
JSON
JWT
MongoDB
Net
NetSSL_OpenSSL
NetSSL_Win
PDF
PageCompiler
PocoDoc
ProGen
Redis
SevenZip
Util
XML
Zip
build
ci
cmake
contrib
doc
packaging
patches
release
.gitattributes
.gitignore
.gitmodules
CHANGELOG
CMakeLists.txt
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
Makefile
NEWS
README
README.md
VERSION
build_cmake.cmd
build_cmake.sh
build_vs140.cmd
build_vs150.cmd
build_vs160.cmd
buildwin.cmd
buildwin.ps1
components
configure
cppignore.lnx
cppignore.win
env.bat
env.sh
libversion
PUGIXML
SAJSON
SimpleIni
Squirrel
TinyDir
UTF8
ZMQ
xxHash
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
80 lines
1.9 KiB
C++
80 lines
1.9 KiB
C++
//
|
|
// ODBCMySQLTest.h
|
|
//
|
|
// Definition of the ODBCMySQLTest class.
|
|
//
|
|
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef ODBCMySQLTest_INCLUDED
|
|
#define ODBCMySQLTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Data/ODBC/ODBC.h"
|
|
#include "ODBCTest.h"
|
|
|
|
|
|
class ODBCMySQLTest: public ODBCTest
|
|
/// MySQL ODBC test class
|
|
/// Tested:
|
|
///
|
|
/// Driver | DB | OS | Driver Manager
|
|
/// ----------------+---------------------------+-------------------------------------------+---------------------
|
|
/// 03.51.12.00 | MySQL 5.0.27-community-nt | MS Windows XP Professional x64 v.2003/SP1 | 3.526.3959.0
|
|
/// 3.51.11.-6 | MySQL 5.0.27-community-nt | Ubuntu 7.04 (2.6.20-15-generic #2 SMP) | unixODBC 2.2.11.-13
|
|
///
|
|
|
|
{
|
|
public:
|
|
ODBCMySQLTest(const std::string& name);
|
|
~ODBCMySQLTest();
|
|
|
|
void testBareboneODBC();
|
|
|
|
void testBLOB();
|
|
|
|
void testStoredProcedure();
|
|
void testStoredFunction();
|
|
|
|
void testNull();
|
|
|
|
void testMultipleResults();
|
|
void testFilter();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
void dropObject(const std::string& type, const std::string& name);
|
|
void recreateNullableTable();
|
|
void recreatePersonTable();
|
|
void recreatePersonBLOBTable();
|
|
void recreatePersonDateTable();
|
|
void recreatePersonTimeTable();
|
|
void recreatePersonDateTimeTable();
|
|
void recreateStringsTable();
|
|
void recreateIntsTable();
|
|
void recreateFloatsTable();
|
|
void recreateTuplesTable();
|
|
void recreateVectorsTable();
|
|
void recreateAnysTable();
|
|
void recreateNullsTable(const std::string& notNull = "");
|
|
void recreateMiscTable();
|
|
void recreateLogTable();
|
|
|
|
static ODBCTest::SessionPtr _pSession;
|
|
static ODBCTest::ExecPtr _pExecutor;
|
|
static std::string _driver;
|
|
static std::string _dsn;
|
|
static std::string _uid;
|
|
static std::string _pwd;
|
|
static std::string _db;
|
|
static std::string _connectString;
|
|
};
|
|
|
|
|
|
#endif // ODBCMySQLTest_INCLUDED
|