The Battle for Wesnoth  1.15.3+dev
ParameterizedQueryTest.h
Go to the documentation of this file.
1 //
2 // M A R I A D B + +
3 //
4 // Copyright The ViaDuck Project 2016 - 2018.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 
9 #ifndef MARIADBCLIENTPP_PARAMETERIZEDQUERYTEST_H
10 #define MARIADBCLIENTPP_PARAMETERIZEDQUERYTEST_H
11 
12 #include "SkeletonTest.h"
13 
15  virtual void CreateTestTable() override {
16  m_con->execute("CREATE TABLE " + m_table_name +
17  " (id INT AUTO_INCREMENT, preis INT, str VARCHAR(30), nnstr VARCHAR(30) NOT NULL DEFAULT '',"
18  "b BOOL, tim DATETIME(6), tiim TIME(6), d DECIMAL(3,2), dd DOUBLE, nul INT, PRIMARY KEY (id));");
19  m_con->execute("INSERT INTO " + m_table_name + " (id, preis) VALUES (1, 150);");
20  }
21 };
22 
23 #endif // MARIADBCLIENTPP_PARAMETERIZEDQUERYTEST_H
virtual void CreateTestTable() override
connection_ref m_con
Definition: SkeletonTest.h:56
std::string m_table_name
Definition: SkeletonTest.h:54