Skip to content

Commit 93e9397

Browse files
committed
fix #97; multiple DuckDB parameters
1 parent a45288c commit 93e9397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databases/duckdb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function duckdb({path, options}: DuckDBConfig): QueryTemplateFunc
1919
let rows: Record<string, Json>[];
2020
try {
2121
result = await connection.run(
22-
strings.reduce((p, c, i) => `${p}$${i - 1}${c}`),
22+
strings.reduce((p, c, i) => `${p}$${i}${c}`),
2323
params
2424
);
2525
rows = await result.getRowObjectsJson();

0 commit comments

Comments
 (0)