mirror of
https://github.com/getml/sqlgen.git
synced 2026-01-05 17:09:50 -06:00
Fixed typo in select_from (#51)
This commit is contained in:
committed by
GitHub
parent
7a617b0828
commit
8649e41861
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user