Closed ackava closed 1 month ago
Hey @ackava, thanks for the report, although I'm struggling to reproduce it.
There's a couple of typos in your comment, it's missing the array wrapper around the params. But thats not the error, and adding them doesn't trigger the error you've posted. It looks like you've used the worker, I've tried it with that too.
@samwillis I was able to figure out the issue, column was set to text and I was trying to insert a number. Usually postgres (node pg) reports an error such as unable to convert number to text/varchar. However in non worker mode, this returns a different error such as Insufficient data left in message.
https://jsfiddle.net/0kzu3y1v/14/
Will it be possible to improve the error message?
Tested with version 0.2.8
Passing null to timestamp column fails.
Passing 1 to bigint column fails.
Error Detail,