Skip to content

Commit

Permalink
Update unit test of Firebird backend for complete integer type support
Browse files Browse the repository at this point in the history
  • Loading branch information
zann1x committed May 8, 2022
1 parent ace1928 commit 78ca03b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/firebird/test-firebird.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ TEST_CASE("Firebird dynamic binding", "[firebird][dynamic]")
CHECK(r.get_properties(1).get_name() == "MSG");
CHECK(r.get_properties(2).get_name() == "NTEST");

CHECK(r.get_properties(0).get_data_type() == dt_integer);
CHECK(r.get_properties(0).get_data_type() == dt_int32);
CHECK(r.get_properties(1).get_data_type() == dt_string);
CHECK(r.get_properties(2).get_data_type() == dt_double);

Expand All @@ -781,7 +781,7 @@ TEST_CASE("Firebird dynamic binding", "[firebird][dynamic]")
CHECK(r.get_properties("MSG").get_name() == "MSG");
CHECK(r.get_properties("NTEST").get_name() == "NTEST");

CHECK(r.get_properties("ID").get_data_type() == dt_integer);
CHECK(r.get_properties("ID").get_data_type() == dt_int32);
CHECK(r.get_properties("MSG").get_data_type() == dt_string);
CHECK(r.get_properties("NTEST").get_data_type() == dt_double);

Expand Down Expand Up @@ -1231,8 +1231,8 @@ struct TableCreator1 : public tests::table_creator_base
: tests::table_creator_base(sql)
{
sql << "create table soci_test(id integer, val integer, c char, "
"str varchar(20), sh smallint, ul bigint, d double precision, "
"num76 numeric(7,6), "
"str varchar(20), sh smallint, ll bigint, ul bigint, "
"d double precision, num76 numeric(7,6), "
"tm timestamp, i1 integer, i2 integer, i3 integer, name varchar(20))";
sql.commit();
sql.begin();
Expand Down Expand Up @@ -1334,6 +1334,11 @@ class test_context : public tests::test_context_base
return new TableCreatorXML(s);
}

bool has_uint64_support() const SOCI_OVERRIDE
{
return false;
}

std::string to_date_time(std::string const &datdt_string) const SOCI_OVERRIDE
{
return "'" + datdt_string + "'";
Expand Down

0 comments on commit 78ca03b

Please sign in to comment.