From eca46d1ff367402f3687e85109b4137e6852d9b9 Mon Sep 17 00:00:00 2001 From: Berend de Boer Date: Tue, 5 Sep 2023 20:35:52 +1200 Subject: [PATCH] fix(pg,aws-data-api): run execute inside transaction For more details see #1171 --- drizzle-orm/src/aws-data-api/pg/session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drizzle-orm/src/aws-data-api/pg/session.ts b/drizzle-orm/src/aws-data-api/pg/session.ts index 97d3dd3c0..7c80d5369 100644 --- a/drizzle-orm/src/aws-data-api/pg/session.ts +++ b/drizzle-orm/src/aws-data-api/pg/session.ts @@ -133,7 +133,7 @@ export class AwsDataApiSession< prepareQuery( query: Query, fields: SelectedFieldsOrdered | undefined, - transactionId?: string, + name: string | undefined, customResultMapper?: (rows: unknown[][]) => T['execute'], ): PreparedQuery { return new AwsDataApiPreparedQuery( @@ -143,7 +143,7 @@ export class AwsDataApiSession< query.typings ?? [], this.options, fields, - transactionId, + this.transactionId, customResultMapper, ); }