diff --git a/src/relations.zig b/src/relations.zig index 7ac0891..18f5d7b 100644 --- a/src/relations.zig +++ b/src/relations.zig @@ -117,8 +117,8 @@ pub fn typedMany( }); query.join(.{ - .sql = "INNER JOIN \"" ++ through.table ++ "\" ON AS \"" ++ prefix ++ "pivot" ++ "\" " ++ - "\"" ++ toRepositoryConfig.table ++ "\"." ++ modelKey ++ " = " ++ "\"" ++ prefix ++ "pivot" ++ "\"." ++ through.joinModelKey, + .sql = "INNER JOIN \"" ++ through.table ++ "\" AS \"" ++ prefix ++ "pivot" ++ "\" " ++ + "ON \"" ++ toRepositoryConfig.table ++ "\"." ++ modelKey ++ " = " ++ "\"" ++ prefix ++ "pivot" ++ "\"." ++ through.joinModelKey, .params = &[0]_sql.RawQueryParameter{}, });