Skip to content

Commit

Permalink
fix(pg,aws-data-api): run execute inside transaction
Browse files Browse the repository at this point in the history
For more details see drizzle-team#1171
  • Loading branch information
berenddeboer committed Sep 5, 2023
1 parent 2abb9f7 commit eca46d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drizzle-orm/src/aws-data-api/pg/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class AwsDataApiSession<
prepareQuery<T extends PreparedQueryConfig = PreparedQueryConfig>(
query: Query,
fields: SelectedFieldsOrdered | undefined,
transactionId?: string,
name: string | undefined,
customResultMapper?: (rows: unknown[][]) => T['execute'],
): PreparedQuery<T> {
return new AwsDataApiPreparedQuery(
Expand All @@ -143,7 +143,7 @@ export class AwsDataApiSession<
query.typings ?? [],
this.options,
fields,
transactionId,
this.transactionId,
customResultMapper,
);
}
Expand Down

0 comments on commit eca46d1

Please sign in to comment.