Skip to content

Commit

Permalink
Merge pull request drizzle-team#517 from michaelgmcd/main
Browse files Browse the repository at this point in the history
  • Loading branch information
dankochetov authored May 28, 2023
2 parents 8aa6e7e + 8b72e92 commit 04ced07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sql/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function mergeQueries(queries: Query[]): Query {
for (const query of queries) {
result.sql += query.sql;
result.params.push(...query.params);
if (result.typings && query.typings?.length) {
if (query.typings?.length) {
result.typings = result.typings || [];
result.typings.push(...query.typings);
}
}
Expand Down

0 comments on commit 04ced07

Please sign in to comment.