Commit 7d7516d4 authored by Mateusz Loskot's avatar Mateusz Loskot

Add more qualifications uses of session class with namespace soci::session.

This should solve compilation errors on OSX where struct session defined in
global namespace in /usr/include/sys/proc.h conflicts with unqualified uses of
soci::session.
Fixes #340
parent 1e89d436
......@@ -43,7 +43,7 @@ namespace boost {
struct table_creator_one : public table_creator_base
{
table_creator_one(session & sql)
table_creator_one(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(ID INTEGER, VAL SMALLINT, C CHAR, STR VARCHAR(20), SH SMALLINT, UL NUMERIC(20), D DOUBLE, "
......@@ -54,7 +54,7 @@ struct table_creator_one : public table_creator_base
struct table_creator_two : public table_creator_base
{
table_creator_two(session & sql)
table_creator_two(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(NUM_FLOAT DOUBLE, NUM_INT INTEGER, NAME VARCHAR(20), SOMETIME TIMESTAMP, CHR CHAR)";
......@@ -63,7 +63,7 @@ struct table_creator_two : public table_creator_base
struct table_creator_three : public table_creator_base
{
table_creator_three(session & sql)
table_creator_three(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(NAME VARCHAR(100) NOT NULL, PHONE VARCHAR(15))";
......@@ -72,7 +72,7 @@ struct table_creator_three : public table_creator_base
struct table_creator_for_get_affected_rows : table_creator_base
{
table_creator_for_get_affected_rows(session & sql)
table_creator_for_get_affected_rows(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(VAL INTEGER)";
......@@ -85,25 +85,25 @@ public:
test_context(backend_factory const & pi_back_end, std::string const & pi_connect_string)
: test_context_base(pi_back_end, pi_connect_string) {}
table_creator_base* table_creator_1(session & pr_s) const
table_creator_base* table_creator_1(soci::session & pr_s) const
{
pr_s << "SET CURRENT SCHEMA = 'DB2INST1'";
return new table_creator_one(pr_s);
}
table_creator_base* table_creator_2(session & pr_s) const
table_creator_base* table_creator_2(soci::session & pr_s) const
{
pr_s << "SET CURRENT SCHEMA = 'DB2INST1'";
return new table_creator_two(pr_s);
}
table_creator_base* table_creator_3(session & pr_s) const
table_creator_base* table_creator_3(soci::session & pr_s) const
{
pr_s << "SET CURRENT SCHEMA = 'DB2INST1'";
return new table_creator_three(pr_s);
}
table_creator_base* table_creator_4(session& s) const
table_creator_base* table_creator_4(soci::session& s) const
{
return new table_creator_for_get_affected_rows(s);
}
......
......@@ -1225,7 +1225,7 @@ TEST_CASE("Firebird decimals as strings", "[firebird][decimal][string]")
struct TableCreator1 : public tests::table_creator_base
{
TableCreator1(session & sql)
TableCreator1(soci::session & sql)
: tests::table_creator_base(sql)
{
sql << "create table soci_test(id integer, val integer, c char, "
......@@ -1239,7 +1239,7 @@ struct TableCreator1 : public tests::table_creator_base
struct TableCreator2 : public tests::table_creator_base
{
TableCreator2(session & sql)
TableCreator2(soci::session & sql)
: tests::table_creator_base(sql)
{
sql << "create table soci_test(num_float float, num_int integer, "
......@@ -1251,7 +1251,7 @@ struct TableCreator2 : public tests::table_creator_base
struct TableCreator3 : public tests::table_creator_base
{
TableCreator3(session & sql)
TableCreator3(soci::session & sql)
: tests::table_creator_base(sql)
{
sql << "create table soci_test(name varchar(100) not null, "
......@@ -1263,7 +1263,7 @@ struct TableCreator3 : public tests::table_creator_base
struct TableCreator4 : public tests::table_creator_base
{
TableCreator4(session & sql)
TableCreator4(soci::session & sql)
: tests::table_creator_base(sql)
{
sql << "create table soci_test(val integer)";
......@@ -1280,22 +1280,22 @@ class test_context : public tests::test_context_base
: test_context_base(backEnd, connectString)
{}
tests::table_creator_base* table_creator_1(session& s) const
tests::table_creator_base* table_creator_1(soci::session& s) const
{
return new TableCreator1(s);
}
tests::table_creator_base* table_creator_2(session& s) const
tests::table_creator_base* table_creator_2(soci::session& s) const
{
return new TableCreator2(s);
}
tests::table_creator_base* table_creator_3(session& s) const
tests::table_creator_base* table_creator_3(soci::session& s) const
{
return new TableCreator3(s);
}
tests::table_creator_base* table_creator_4(session& s) const
tests::table_creator_base* table_creator_4(soci::session& s) const
{
return new TableCreator4(s);
}
......@@ -1305,7 +1305,7 @@ class test_context : public tests::test_context_base
return "'" + datdt_string + "'";
}
virtual void on_after_ddl(session& sql) const
virtual void on_after_ddl(soci::session& sql) const
{
sql.commit();
}
......
......@@ -148,7 +148,7 @@ TEST_CASE("MySQL error reporting", "[mysql][exception]")
struct bigint_table_creator : table_creator_base
{
bigint_table_creator(session & sql)
bigint_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val bigint)";
......@@ -157,7 +157,7 @@ struct bigint_table_creator : table_creator_base
struct bigint_unsigned_table_creator : table_creator_base
{
bigint_unsigned_table_creator(session & sql)
bigint_unsigned_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val bigint unsigned)";
......@@ -504,7 +504,7 @@ TEST_CASE("MySQL text and blob", "[mysql][text][blob]")
struct integer_value_table_creator : table_creator_base
{
integer_value_table_creator(session & sql)
integer_value_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val integer)";
......@@ -570,7 +570,7 @@ TEST_CASE("MySQL statements after reconnect", "[mysql][connect]")
struct unsigned_value_table_creator : table_creator_base
{
unsigned_value_table_creator(session & sql)
unsigned_value_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val int unsigned)";
......@@ -610,7 +610,7 @@ TEST_CASE("MySQL function call", "[mysql][function]")
struct double_value_table_creator : table_creator_base
{
double_value_table_creator(session & sql)
double_value_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val double)";
......@@ -676,7 +676,7 @@ TEST_CASE("MySQL special floating point values", "[mysql][float]")
struct tinyint_value_table_creator : table_creator_base
{
tinyint_value_table_creator(session & sql)
tinyint_value_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val tinyint)";
......@@ -685,7 +685,7 @@ struct tinyint_value_table_creator : table_creator_base
struct tinyint_unsigned_value_table_creator : table_creator_base
{
tinyint_unsigned_value_table_creator(session & sql)
tinyint_unsigned_value_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val tinyint unsigned)";
......@@ -750,7 +750,7 @@ TEST_CASE("MySQL tinyint", "[mysql][int][tinyint]")
struct strings_table_creator : table_creator_base
{
strings_table_creator(session & sql)
strings_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(s1 char(20), s2 varchar(20), "
......@@ -791,7 +791,7 @@ TEST_CASE("MySQL strings", "[mysql][string]")
struct table_creator_for_get_last_insert_id : table_creator_base
{
table_creator_for_get_last_insert_id(session & sql)
table_creator_for_get_last_insert_id(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(id integer not null auto_increment, "
......
......@@ -9,7 +9,7 @@ using namespace soci::tests;
// DDL Creation objects for common tests
struct table_creator_one : public table_creator_base
{
table_creator_one(session & sql)
table_creator_one(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(id integer, val integer, c char, "
......@@ -22,7 +22,7 @@ struct table_creator_one : public table_creator_base
struct table_creator_two : public table_creator_base
{
table_creator_two(session & sql)
table_creator_two(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(num_float float8, num_int integer,"
......@@ -32,7 +32,7 @@ struct table_creator_two : public table_creator_base
struct table_creator_three : public table_creator_base
{
table_creator_three(session & sql)
table_creator_three(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(name varchar(100) not null, "
......@@ -42,7 +42,7 @@ struct table_creator_three : public table_creator_base
struct table_creator_for_get_affected_rows : table_creator_base
{
table_creator_for_get_affected_rows(session & sql)
table_creator_for_get_affected_rows(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val integer)";
......@@ -60,22 +60,22 @@ public:
std::string const &connectString)
: test_context_base(backEnd, connectString) {}
table_creator_base* table_creator_1(session& s) const
table_creator_base* table_creator_1(soci::session& s) const
{
return new table_creator_one(s);
}
table_creator_base* table_creator_2(session& s) const
table_creator_base* table_creator_2(soci::session& s) const
{
return new table_creator_two(s);
}
table_creator_base* table_creator_3(session& s) const
table_creator_base* table_creator_3(soci::session& s) const
{
return new table_creator_three(s);
}
table_creator_base* table_creator_4(session& s) const
table_creator_base* table_creator_4(soci::session& s) const
{
return new table_creator_for_get_affected_rows(s);
}
......@@ -92,7 +92,7 @@ public:
return true;
}
virtual bool has_transactions_support(session& sql) const
virtual bool has_transactions_support(soci::session& sql) const
{
sql << "drop table if exists soci_test";
sql << "create table soci_test (id int) engine=InnoDB";
......@@ -103,7 +103,7 @@ public:
return retv;
}
virtual bool has_silent_truncate_bug(session& sql) const
virtual bool has_silent_truncate_bug(soci::session& sql) const
{
std::string sql_mode;
sql << "select @@session.sql_mode", into(sql_mode);
......
......@@ -39,7 +39,7 @@ backend_factory const &backEnd = *soci::factory_odbc();
// DDL Creation objects for common tests
struct table_creator_one : public table_creator_base
{
table_creator_one(session & sql)
table_creator_one(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(id integer, val integer, c char, "
......@@ -52,7 +52,7 @@ struct table_creator_one : public table_creator_base
struct table_creator_two : public table_creator_base
{
table_creator_two(session & sql)
table_creator_two(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(num_float float, num_int integer,"
......@@ -62,7 +62,7 @@ struct table_creator_two : public table_creator_base
struct table_creator_three : public table_creator_base
{
table_creator_three(session & sql)
table_creator_three(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(name varchar(100) not null, "
......@@ -72,7 +72,7 @@ struct table_creator_three : public table_creator_base
struct table_creator_for_get_affected_rows : table_creator_base
{
table_creator_for_get_affected_rows(session & sql)
table_creator_for_get_affected_rows(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val integer)";
......@@ -90,22 +90,22 @@ public:
test_context(backend_factory const &backEnd, std::string const &connectString)
: test_context_base(backEnd, connectString) {}
table_creator_base * table_creator_1(session& s) const
table_creator_base * table_creator_1(soci::session& s) const
{
return new table_creator_one(s);
}
table_creator_base * table_creator_2(session& s) const
table_creator_base * table_creator_2(soci::session& s) const
{
return new table_creator_two(s);
}
table_creator_base * table_creator_3(session& s) const
table_creator_base * table_creator_3(soci::session& s) const
{
return new table_creator_three(s);
}
table_creator_base * table_creator_4(session& s) const
table_creator_base * table_creator_4(soci::session& s) const
{
return new table_creator_for_get_affected_rows(s);
}
......
......@@ -39,7 +39,7 @@ backend_factory const &backEnd = *soci::factory_odbc();
// DDL Creation objects for common tests
struct table_creator_one : public table_creator_base
{
table_creator_one(session & sql)
table_creator_one(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(ID INTEGER, VAL SMALLINT, C CHAR, STR VARCHAR(20), SH SMALLINT, UL NUMERIC(20), D DOUBLE, "
......@@ -50,7 +50,7 @@ struct table_creator_one : public table_creator_base
struct table_creator_two : public table_creator_base
{
table_creator_two(session & sql)
table_creator_two(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(NUM_FLOAT DOUBLE, NUM_INT INTEGER, NAME VARCHAR(20), SOMETIME TIMESTAMP, CHR CHAR)";
......@@ -59,7 +59,7 @@ struct table_creator_two : public table_creator_base
struct table_creator_three : public table_creator_base
{
table_creator_three(session & sql)
table_creator_three(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(NAME VARCHAR(100) NOT NULL, PHONE VARCHAR(15))";
......@@ -68,7 +68,7 @@ struct table_creator_three : public table_creator_base
struct table_creator_for_get_affected_rows : table_creator_base
{
table_creator_for_get_affected_rows(session & sql)
table_creator_for_get_affected_rows(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST(VAL INTEGER)";
......@@ -86,22 +86,22 @@ public:
std::string const &connectString)
: test_context_base(backEnd, connectString) {}
table_creator_base * table_creator_1(session& s) const
table_creator_base * table_creator_1(soci::session& s) const
{
return new table_creator_one(s);
}
table_creator_base * table_creator_2(session& s) const
table_creator_base * table_creator_2(soci::session& s) const
{
return new table_creator_two(s);
}
table_creator_base * table_creator_3(session& s) const
table_creator_base * table_creator_3(soci::session& s) const
{
return new table_creator_three(s);
}
table_creator_base * table_creator_4(session& s) const
table_creator_base * table_creator_4(soci::session& s) const
{
return new table_creator_for_get_affected_rows(s);
}
......@@ -114,7 +114,7 @@ public:
struct table_creator_bigint : table_creator_base
{
table_creator_bigint(session & sql)
table_creator_bigint(soci::session & sql)
: table_creator_base(sql)
{
sql << "CREATE TABLE SOCI_TEST (VAL BIGINT)";
......
......@@ -39,7 +39,7 @@ namespace boost {
// DDL Creation objects for common tests
struct table_creator_one : public table_creator_base
{
table_creator_one(session & sql)
table_creator_one(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(id integer, val integer, c char, "
......@@ -52,7 +52,7 @@ struct table_creator_one : public table_creator_base
struct table_creator_two : public table_creator_base
{
table_creator_two(session & sql)
table_creator_two(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(num_float float, num_int integer,"
......@@ -62,7 +62,7 @@ struct table_creator_two : public table_creator_base
struct table_creator_three : public table_creator_base
{
table_creator_three(session & sql)
table_creator_three(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(name varchar(100) not null, "
......@@ -72,7 +72,7 @@ struct table_creator_three : public table_creator_base
struct table_creator_for_get_affected_rows : table_creator_base
{
table_creator_for_get_affected_rows(session & sql)
table_creator_for_get_affected_rows(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val integer)";
......@@ -90,22 +90,22 @@ public:
std::string const &connectString)
: test_context_base(backEnd, connectString) {}
table_creator_base* table_creator_1(session& s) const
table_creator_base* table_creator_1(soci::session& s) const
{
return new table_creator_one(s);
}
table_creator_base* table_creator_2(session& s) const
table_creator_base* table_creator_2(soci::session& s) const
{
return new table_creator_two(s);
}
table_creator_base* table_creator_3(session& s) const
table_creator_base* table_creator_3(soci::session& s) const
{
return new table_creator_three(s);
}
table_creator_base * table_creator_4(session& s) const
table_creator_base * table_creator_4(soci::session& s) const
{
return new table_creator_for_get_affected_rows(s);
}
......
......@@ -105,7 +105,7 @@ backend_factory const &backEnd = *soci::factory_odbc();
// DDL Creation objects for common tests
struct table_creator_one : public table_creator_base
{
table_creator_one(session & sql)
table_creator_one(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(id integer, val integer, c char, "
......@@ -118,7 +118,7 @@ struct table_creator_one : public table_creator_base
struct table_creator_two : public table_creator_base
{
table_creator_two(session & sql)
table_creator_two(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(num_float float8, num_int integer,"
......@@ -128,7 +128,7 @@ struct table_creator_two : public table_creator_base
struct table_creator_three : public table_creator_base
{
table_creator_three(session & sql)
table_creator_three(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(name varchar(100) not null, "
......@@ -138,7 +138,7 @@ struct table_creator_three : public table_creator_base
struct table_creator_for_get_affected_rows : table_creator_base
{
table_creator_for_get_affected_rows(session & sql)
table_creator_for_get_affected_rows(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val integer)";
......@@ -160,22 +160,22 @@ public:
std::cout << "Using ODBC driver version " << m_verDriver << "\n";
}
table_creator_base * table_creator_1(session& s) const
table_creator_base * table_creator_1(soci::session& s) const
{
return new table_creator_one(s);
}
table_creator_base * table_creator_2(session& s) const
table_creator_base * table_creator_2(soci::session& s) const
{
return new table_creator_two(s);
}
table_creator_base * table_creator_3(session& s) const
table_creator_base * table_creator_3(soci::session& s) const
{
return new table_creator_three(s);
}
table_creator_base * table_creator_4(session& s) const
table_creator_base * table_creator_4(soci::session& s) const
{
return new table_creator_for_get_affected_rows(s);
}
......
......@@ -122,7 +122,7 @@ TEST_CASE("Oracle explicit calls", "[oracle]")
struct blob_table_creator : public table_creator_base
{
blob_table_creator(session & sql)
blob_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql <<
......@@ -185,7 +185,7 @@ TEST_CASE("Oracle blob", "[oracle][blob]")
struct basic_table_creator : public table_creator_base
{
basic_table_creator(session & sql)
basic_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql <<
......@@ -256,7 +256,7 @@ TEST_CASE("Oracle rowid", "[oracle][rowid]")
// Stored procedures
struct procedure_creator : procedure_creator_base
{
procedure_creator(session & sql)
procedure_creator(soci::session & sql)
: procedure_creator_base(sql)
{
sql <<
......@@ -325,7 +325,7 @@ namespace soci
struct in_out_procedure_creator : public procedure_creator_base
{
in_out_procedure_creator(session & sql)
in_out_procedure_creator(soci::session & sql)
: procedure_creator_base(sql)
{
sql << "create or replace procedure soci_test(s in out varchar2)"
......@@ -335,7 +335,7 @@ struct in_out_procedure_creator : public procedure_creator_base
struct returns_null_procedure_creator : public procedure_creator_base
{
returns_null_procedure_creator(session & sql)
returns_null_procedure_creator(soci::session & sql)
: procedure_creator_base(sql)
{
sql << "create or replace procedure soci_test(s in out varchar2)"
......@@ -763,7 +763,7 @@ namespace soci
struct person_table_creator : public table_creator_base
{
person_table_creator(session & sql)
person_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(id numeric(5,0) NOT NULL,"
......@@ -774,7 +774,7 @@ struct person_table_creator : public table_creator_base
struct times100_procedure_creator : public procedure_creator_base
{
times100_procedure_creator(session & sql)
times100_procedure_creator(soci::session & sql)
: procedure_creator_base(sql)
{
sql << "create or replace procedure soci_test(id in out number)"
......@@ -975,7 +975,7 @@ TEST_CASE("Oracle ORM by index", "[oracle][orm]")
///
struct long_table_creator : public table_creator_base
{
long_table_creator(session & sql)
long_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(l long)";
......@@ -1028,7 +1028,7 @@ TEST_CASE("Oracle const and modifiable parameters", "[oracle][use]")
struct longlong_table_creator : table_creator_base
{
longlong_table_creator(session & sql)
longlong_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val number(20))";
......@@ -1085,7 +1085,7 @@ TEST_CASE("Oracle long long", "[oracle][longlong]")
struct table_creator_one : public table_creator_base
{
table_creator_one(session & sql)
table_creator_one(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(id number(10,0), val number(4,0), c char, "
......@@ -1097,7 +1097,7 @@ struct table_creator_one : public table_creator_base
struct table_creator_two : public table_creator_base
{
table_creator_two(session & sql)
table_creator_two(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(num_float number, num_int numeric(4,0),"
......@@ -1107,7 +1107,7 @@ struct table_creator_two : public table_creator_base
struct table_creator_three : public table_creator_base
{
table_creator_three(session & sql)
table_creator_three(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(name varchar2(100) not null, "
......@@ -1117,7 +1117,7 @@ struct table_creator_three : public table_creator_base
struct table_creator_four : public table_creator_base
{
table_creator_four(session & sql)
table_creator_four(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val number)";
......@@ -1131,22 +1131,22 @@ public:
std::string const &connectString)
: test_context_base(backEnd, connectString) {}
table_creator_base* table_creator_1(session& s) const
table_creator_base* table_creator_1(soci::session& s) const
{
return new table_creator_one(s);
}
table_creator_base* table_creator_2(session& s) const
table_creator_base* table_creator_2(soci::session& s) const
{
return new table_creator_two(s);
}
table_creator_base* table_creator_3(session& s) const
table_creator_base* table_creator_3(soci::session& s) const
{
return new table_creator_three(s);
}
table_creator_base* table_creator_4(session& s) const
table_creator_base* table_creator_4(soci::session& s) const
{
return new table_creator_four(s);
}
......
......@@ -43,7 +43,7 @@ backend_factory const &backEnd = *soci::factory_postgresql();
struct oid_table_creator : public table_creator_base
{
oid_table_creator(session& sql)
oid_table_creator(soci::session& sql)
: table_creator_base(sql)
{
sql << "create table soci_test ("
......@@ -107,7 +107,7 @@ class function_creator : function_creator_base
{
public:
function_creator(session & sql)
function_creator(soci::session & sql)
: function_creator_base(sql)
{
// before a language can be used it must be defined
......@@ -199,7 +199,7 @@ TEST_CASE("PostgreSQL function call", "[postgresql][function]")
// BLOB test
struct blob_table_creator : public table_creator_base
{
blob_table_creator(session & sql)
blob_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql <<
......@@ -251,7 +251,7 @@ TEST_CASE("PostgreSQL blob", "[postgresql][blob]")
struct longlong_table_creator : table_creator_base
{
longlong_table_creator(session & sql)
longlong_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val int8)";
......@@ -319,7 +319,7 @@ TEST_CASE("PostgreSQL unsigned long long", "[postgresql][unsigned][longlong]")
struct boolean_table_creator : table_creator_base
{
boolean_table_creator(session & sql)
boolean_table_creator(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val boolean)";
......@@ -461,7 +461,7 @@ TEST_CASE("PostgreSQL datetime", "[postgresql][datetime]")
struct table_creator_for_test11 : table_creator_base
{
table_creator_for_test11(session & sql)
table_creator_for_test11(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(val integer)";
......@@ -496,7 +496,7 @@ TEST_CASE("PostgreSQL get affected rows", "[postgresql][affected-rows]")
struct table_creator_for_test12 : table_creator_base
{
table_creator_for_test12(session & sql)
table_creator_for_test12(soci::session & sql)
: table_creator_base(sql)
{
sql << "create table soci_test(sid serial, txt text)";
......@@ -525,7 +525,7 @@ TEST_CASE("PostgreSQL insert into ... returning", "[postgresql]")