You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using db.param(value, 'type') where type is a string doesn't work for native types. The cast operation will be rejected with a "does not exist" error. This is due to core.ts:350 result.text += CAST(${placeholder} AS "${expression.cast}"); which wraps the cast with quotes. .
For example, db.param(1, 'bigint') will generate the fragment CAST(1 AS "bigint") which is not valid. For whatever reason "json" is a valid AS target but other types do not seem to work.
The text was updated successfully, but these errors were encountered:
using
db.param(value, 'type')
where type is a string doesn't work for native types. The cast operation will be rejected with a "does not exist" error. This is due to core.ts:350result.text +=
CAST(${placeholder} AS "${expression.cast}");
which wraps the cast with quotes. .For example,
db.param(1, 'bigint')
will generate the fragmentCAST(1 AS "bigint")
which is not valid. For whatever reason "json" is a valid AS target but other types do not seem to work.The text was updated successfully, but these errors were encountered: