adding for not equals query

This commit is contained in:
Martin McKeaveney 2024-07-22 21:27:59 +01:00
parent 537c92b371
commit 9035674f00
1 changed files with 4 additions and 0 deletions

View File

@ -458,6 +458,10 @@ class InternalBuilder {
)} = ? THEN 1 ELSE 0 END = 0`,
[value]
)
} else if (SqlClient.ORACLE) {
query = query[fnc](`${quotedIdentifier(this.client, key)} != ?`, [
value,
])
} else {
query = query[fnc](
`COALESCE(${quotedIdentifier(this.client, key)} != ?, TRUE)`,