Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/sqlgen/select_from.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down
2 changes: 1 addition & 1 deletion tests/postgres/test_enum_namespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tests/sqlite/test_enum_namespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
10 changes: 5 additions & 5 deletions tests/sqlite/test_group_by_with_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Loading