I using Postgresql Insert node, but it error when column type is timestamp
I have the input date in ISO 8601 date string format and I keep getting an error.
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Error Message:
parsing as type timestamp: unexpected separator ‘"’ for field Year
Wanted: [ Year Month Day Era Hour Minute Second Nanos Meridian TZHour TZMinute TZSecond ] Already found in input:
First thing that jumped out - is you have all the fields on the left and in the table named the same. If this is actually the case in your actual workflow - you could just use automatic mapping. Let me now take alook at the rest.
This definitely could be the reason. While CockroachDB is Postgres-compatible, it is not Postgres. Its timestamp parsing is implemented in Go and is stricter. That exact error (“unexpected separator ‘"’ for field Year … wanted: [Year Month Day …]”) is Cockroach’s Go-style parser complaining that the value it’s trying to parse starts with a double quote.
You may have to switch to using execute statement operation and try to cast required types explicitly.