mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
binaryParser: fixed text protocoll
This commit is contained in:
parent
c513780fae
commit
671a5c52ff
@ -227,11 +227,7 @@ p.parseIntArray = p.parseStringArray = function(value) {
|
||||
};
|
||||
|
||||
p.parseText = function(value) {
|
||||
var convertToChar = function(chr) {
|
||||
return String.fromCharCode(chr);
|
||||
};
|
||||
|
||||
return value.map(convertToChar).join('');
|
||||
return value.toString('utf8');
|
||||
};
|
||||
|
||||
module.exports = BinaryParser;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user