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 b93ecbe commit a3d5d99Copy full SHA for a3d5d99
lib/textParsers.js
@@ -60,6 +60,7 @@ var parseStringArray = function(val) {
60
throw "Not postgresql array! (" + arrStr + ")";
61
62
var x = val.substring(1, val.length - 1);
63
+ if (x === '') return [];
64
x = x.match(/(NULL|[^,]+|"((?:.|\n|\r)*?)(?!\\)"|\{((?:.|\n|\r)*?(?!\\)\}) (,|$))/mg);
65
if (x === null) throw "Not postgre array";
66
return x.map(function (el) {
0 commit comments