Fixing issue brought up by test case.

This commit is contained in:
Michael Drury 2022-03-02 22:51:50 +00:00
parent 94041ced55
commit 65b52f359b
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ class QueryRunner {
interpolateSQL(fields, parameters, integration) { interpolateSQL(fields, parameters, integration) {
let sql = fields.sql let sql = fields.sql
if (!sql) {
return fields
}
const bindings = findHBSBlocks(sql) const bindings = findHBSBlocks(sql)
let variables = [] let variables = []
for (let binding of bindings) { for (let binding of bindings) {