Skip to content

Commit

Permalink
Printing more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
cstiborg committed Aug 27, 2024
1 parent afcd127 commit 34b194a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/mysql/test-mysql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ TEST_CASE("Cross-schema metadata", "[mysql][cross-schema]")
st.execute();
while (st.fetch())
{
std::cout << "Got uppercase table" << std::endl;
linux_mysql = true;
}

Expand All @@ -1005,6 +1006,7 @@ TEST_CASE("Cross-schema metadata", "[mysql][cross-schema]")
st.execute();
while (st.fetch())
{
std::cout << "Got lowercase table" << std::endl;
windows_mysql = true;
}

Expand Down Expand Up @@ -1045,6 +1047,7 @@ TEST_CASE("Cross-schema metadata", "[mysql][cross-schema]")
st1.execute();
while (st1.fetch())
{
std::cout << "st1 table_name: " << table_name << " - tables: " << tables << std::endl;
if (table_name == tables)
{
tables_found = true;
Expand All @@ -1060,7 +1063,7 @@ TEST_CASE("Cross-schema metadata", "[mysql][cross-schema]")
st2.execute();
while (st2.fetch())
{
std::cout << "ci.name: " << ci.name << " - column_name: " << column_name << std::endl;
std::cout << "st2 ci.name: " << ci.name << " - column_name: " << column_name << std::endl;
if (ci.name == column_name)
{
CHECK(ci.type == soci::dt_integer);
Expand All @@ -1078,6 +1081,7 @@ TEST_CASE("Cross-schema metadata", "[mysql][cross-schema]")
st3.execute();
while (st3.fetch())
{
std::cout << "st3 ci.name: " << ci.name << " - column_name: " << column_name << std::endl;
if (ci.name == column_name)
{
CHECK(ci.type == soci::dt_integer);
Expand All @@ -1095,6 +1099,7 @@ TEST_CASE("Cross-schema metadata", "[mysql][cross-schema]")
st4.execute();
while (st4.fetch())
{
std::cout << "st4 ci.name: " << ci.name << " - column_name: " << column_name << std::endl;
if (ci.name == column_name)
{
CHECK(ci.type == soci::dt_string);
Expand Down

0 comments on commit 34b194a

Please sign in to comment.