mirror of
https://github.com/getml/sqlgen.git
synced 2026-05-06 23:21:48 -05:00
Added support for joins (#25)
This commit is contained in:
committed by
GitHub
parent
f95156df77
commit
b283ccf388
@@ -21,7 +21,7 @@ TEST(postgres, test_where_dry) {
|
||||
order_by("age"_c);
|
||||
|
||||
const auto expected =
|
||||
R"(SELECT "id", "first_name", "last_name", "age" FROM "Person" WHERE ("age" < 18) AND ("first_name" != 'Hugo') ORDER BY "age";)";
|
||||
R"(SELECT "id", "first_name", "last_name", "age" FROM "Person" WHERE ("age" < 18) AND ("first_name" != 'Hugo') ORDER BY "age")";
|
||||
|
||||
EXPECT_EQ(sqlgen::postgres::to_sql(query), expected);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user