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
typeCast: function (field, next) { if (field.type === 'JSON') { let c = field.string("utf8"); <= this is causing the warning if (c && c.toLowerCase() !== "[null]") return (JSON.parse(c)); else return []; } return next(); }
brings up npm error
typeCast: JSON column "MyColumnName" is interpreted as BINARY by default, recommended to manually set utf8 encoding: field.string("utf8")
For every query which contains a JSON_ARRAYAGG command.
This is spamming the logs so I really need to get rid of it
sorry do not know how to format the code correct
The text was updated successfully, but these errors were encountered:
Hi,
using typecast
typeCast: function (field, next) { if (field.type === 'JSON') { let c = field.string("utf8"); <= this is causing the warning if (c && c.toLowerCase() !== "[null]") return (JSON.parse(c)); else return []; } return next(); }
brings up npm error
typeCast: JSON column "MyColumnName" is interpreted as BINARY by default, recommended to manually set utf8 encoding: field.string("utf8")
For every query which contains a JSON_ARRAYAGG command.
This is spamming the logs so I really need to get rid of it
sorry do not know how to format the code correct
The text was updated successfully, but these errors were encountered: