2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-14 12:52:17 +00:00

Completed query types tests

This commit is contained in:
ruben
2020-01-09 14:42:43 +00:00
parent 3f4c1332ef
commit c2cebd1560
6 changed files with 82 additions and 10 deletions

View File

@@ -605,7 +605,14 @@ TEST_F(QueryTest, FetchAllAsync_SeveralRows)
EXPECT_EQ(rows, (makerows(2, 1, "f0", 2, "f1")));
}
// Some system-level query tests
TEST_F(QueryTest, QueryAndFetch_AliasedTableAndField_MetadataCorrect)
{
auto result = conn.query("SELECT field_varchar AS field_alias FROM empty_table table_alias");
meta_validator validator ("table_alias", "empty_table", "field_alias",
"field_varchar", field_type::varchar, collation::utf8_general_ci);
validate_meta(result.fields(), {validator});
}
} // anon namespace