12 uint32_t max = std::numeric_limits<uint32_t>::max();
15 m_con->execute(
"INSERT INTO " + m_table_name +
" VALUES (" + std::to_string(max) +
");");
18 result_set_ref res = m_con->query(
"SELECT * FROM " + m_table_name +
";");
21 ASSERT_TRUE(res->next());
22 ASSERT_EQ(max, res->get_unsigned32(0));
25 statement_ref stmt = m_con->create_statement(
"SELECT * FROM " + m_table_name +
";");
28 ASSERT_TRUE(!!stmt_res);
29 ASSERT_TRUE(stmt_res->next());
30 ASSERT_EQ(max, stmt_res->get_unsigned32(0));
std::shared_ptr< result_set > result_set_ref
std::shared_ptr< statement > statement_ref
TEST_F(TruncationTest, testUInt)