We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f55a4b8 commit 4a1d08cCopy full SHA for 4a1d08c
1 file changed
lib/models/index.js
@@ -23,6 +23,7 @@ if (config.dburl) {
23
// [Postgres] Handling NULL bytes
24
// https://github.com/sequelize/sequelize/issues/6485
25
function stripNullByte (value) {
26
+ value = '' + value
27
return value ? value.replace(/\u0000/g, '') : value
28
}
29
sequelize.stripNullByte = stripNullByte
0 commit comments