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
It seems that something is wrong in the parser for text arrays. A text element containing a "," character will be interpreted as new element. i have not digged deeply in the node-postgres source, but found "test/integration/client/array-test.js"
this will break as soon as i add a "," in the array element:
change from:
client.query('INSERT INTO why(names, numbors) VALUES('{"aaron", "brian","a b c" }', '{1, 2, 3}')').on('error', console.log);
change to:
client.query('INSERT INTO why(names, numbors) VALUES('{"aaron, INCLUDING COMMA", "brian","a b c" }', '{1, 2, 3}')').on('error', console.log);
is this a known issue and maybe there is already a patch / fix ?
regards
jan
The text was updated successfully, but these errors were encountered:
I think this is more or less a know issue. Once someone started implementing a simple regex for the complex array parsing problem. He missed some cases and now people try to improve it little by little.
It seems that something is wrong in the parser for text arrays. A text element containing a "," character will be interpreted as new element. i have not digged deeply in the node-postgres source, but found "test/integration/client/array-test.js"
this will break as soon as i add a "," in the array element:
change from:
client.query('INSERT INTO why(names, numbors) VALUES('{"aaron", "brian","a b c" }', '{1, 2, 3}')').on('error', console.log);
change to:
client.query('INSERT INTO why(names, numbors) VALUES('{"aaron, INCLUDING COMMA", "brian","a b c" }', '{1, 2, 3}')').on('error', console.log);
is this a known issue and maybe there is already a patch / fix ?
regards
jan
The text was updated successfully, but these errors were encountered: