Skip to content

Commit

Permalink
hints is an array when it comes from the .hints ql API
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Vogel <[email protected]>
  • Loading branch information
schwma and johannes-vogel authored Feb 12, 2025
1 parent 7e733af commit f2e8b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hana/lib/HANAService.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class HANAService extends SQLService {
// REVISIT: add prepare options when param:true is used
let sqlScript = isLockQuery || isSimple ? sql : this.wrapTemporary(temporary, withclause, blobs)
const{ hints } = query.SELECT
if (hints) sqlScript += ` WITH HINT (${Array.isArray(hints) ? hints.join(',') : hints})`
if (hints) sqlScript += ` WITH HINT (${hints.join(',')})`
let rows
if (values?.length || blobs.length > 0) {
const ps = await this.prepare(sqlScript, blobs.length)
Expand Down

0 comments on commit f2e8b2f

Please sign in to comment.