mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user