Skip to content

Commit 25a3f0d

Browse files
committed
fix: execute always replacing null values
1 parent 5e5aff9 commit 25a3f0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package/src/operations/execute.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ export function execute<Row extends QueryResultRow = never>(
1717
query: string,
1818
params?: SQLiteQueryParams
1919
): QueryResult<Row> {
20+
const transformedParams = isSimpleNullHandlingEnabled()
21+
? toNativeQueryParams(params)
22+
: (params as NativeSQLiteQueryParams)
23+
2024
const nativeResult = HybridNitroSQLite.execute(
2125
dbName,
2226
query,
23-
toNativeQueryParams(params)
27+
transformedParams
2428
)
2529
const result = buildJsQueryResult<Row>(nativeResult)
2630
return result

0 commit comments

Comments
 (0)