We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3353b commit ce80061Copy full SHA for ce80061
lib/types.js
@@ -35,7 +35,7 @@ const types = module.exports.types = {
35
bytea: {
36
to: 17,
37
from: 17,
38
- serialize: x => '\\x' + x.toString('hex'),
+ serialize: x => '\\x' + Buffer.from(x.buffer, x.byteOffset, x.byteLength).toString('hex'),
39
parse: x => Buffer.from(x.slice(2), 'hex')
40
}
41
0 commit comments