Update src/js/bun/sql.ts

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
This commit is contained in:
Alistair Smith
2025-07-03 22:44:17 -07:00
committed by GitHub
parent 180269aa07
commit cf997aaef4

View File

@@ -284,7 +284,7 @@ function normalizeQuery(strings, values, binding_idx = 1) {
const command = detectCommand(query);
// only selectIn, insert, update, updateSet are allowed
if (command === SQLCommand.none || command === SQLCommand.where) {
throw new SyntaxError("Helper are only allowed for INSERT, UPDATE and WHERE IN commands");
throw new SyntaxError("Helpers are only allowed for INSERT, UPDATE and WHERE IN commands");
}
const { columns, value: items } = value as SQLHelper;
const columnCount = columns.length;