Handle numeric types Postgres
This commit is contained in:
parent
156eb8eb09
commit
6b81d3d727
|
@ -234,9 +234,12 @@ class InternalBuilder {
|
||||||
const fieldNames = key.split(/\./g)
|
const fieldNames = key.split(/\./g)
|
||||||
const tableName = fieldNames[0]
|
const tableName = fieldNames[0]
|
||||||
const columnName = fieldNames[1]
|
const columnName = fieldNames[1]
|
||||||
|
if (typeof value === "string") {
|
||||||
|
value = `"${value}"`
|
||||||
|
}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
query = query[rawFnc](
|
query = query[rawFnc](
|
||||||
`"${tableName}"."${columnName}"::jsonb @> '["${value}"]'`
|
`"${tableName}"."${columnName}"::jsonb @> '[${value}]'`
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
} else if (this.client === SqlClients.MY_SQL) {
|
} else if (this.client === SqlClients.MY_SQL) {
|
||||||
|
|
Loading…
Reference in New Issue