Skip to content

Commit

Permalink
Merge pull request #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 b2f1939 + 1297cc2 commit d0cfbcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drizzle-orm/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 d0cfbcc

Please sign in to comment.