Fixed typo in select_from (#51)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2025-09-21 12:00:48 +03:00
committed by GitHub
parent 7a617b0828
commit 8649e41861
4 changed files with 8 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ auto select_from_impl(const Result<Ref<Connection>>& _res,
return select_from_impl<TableTupleType, AliasType, FieldsType,
TableOrQueryType, JoinsType, WhereType, GroupByType,
OrderByType, LimitType, ContainerType>(
_conn, _table_or_query, _joins, _where, _limit);
_conn, _fields, _table_or_query, _joins, _where, _limit);
});
}

View File

@@ -23,7 +23,7 @@ struct MultiStruct {
second::IdenticallyNamed enum_two;
};
TEST(mysql, test_enum_namespace) {
TEST(postgres, test_enum_namespace) {
using namespace sqlgen;
using namespace sqlgen::literals;

View File

@@ -23,7 +23,7 @@ struct MultiStruct {
second::IdenticallyNamed enum_two;
};
TEST(mysql, test_enum_namespace) {
TEST(sqlite, test_enum_namespace) {
using namespace sqlgen;
using namespace sqlgen::literals;

View File

@@ -45,11 +45,11 @@ TEST(sqlite, test_group_by_with_operations) {
round(avg(cast<double>("age"_c))).as<"avg_age">()) |
where("age"_c < 18) | group_by("last_name"_c) | to<std::vector<Children>>;
const auto children = sqlite::connect()
.and_then(drop<Person> | if_exists)
.and_then(write(std::ref(people1)))
.and_then(get_children)
.value();
const auto conn = sqlite::connect()
.and_then(drop<Person> | if_exists)
.and_then(write(std::ref(people1)));
const auto children = get_children(conn).value();
EXPECT_EQ(children.size(), 1);
EXPECT_EQ(children.at(0).last_name, "Simpson");