Skip to content

Commit e11e7c2

Browse files
committed
Fixed a problem with column name conversion in case of sql.js
1 parent 6ab1bbe commit e11e7c2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: drizzle-orm/src/sql-js/session.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,17 @@ export class SQLJsSession<
4444
fields: SelectedFieldsOrdered | undefined,
4545
executeMethod: SQLiteExecuteMethod,
4646
isResponseInArrayMode: boolean,
47+
customResultMapper?: (rows: unknown[][]) => unknown,
4748
): PreparedQuery<T> {
48-
return new PreparedQuery(this.client, query, this.logger, fields, executeMethod, isResponseInArrayMode);
49+
return new PreparedQuery(
50+
this.client,
51+
query,
52+
this.logger,
53+
fields,
54+
executeMethod,
55+
isResponseInArrayMode,
56+
customResultMapper
57+
);
4958
}
5059

5160
override transaction<T>(

0 commit comments

Comments
 (0)