PostgreSQL: Export of inet and interval
Database Subsetter and Relational Data Browser
Brought to you by:
rwisser
Hi Ralf,
i have issues inserting scripst with columns of certain data types in postgresql database.
When exporting a value of type inet Jailer produces: "'192.168.1.1'"
PostgreSQL states: ERROR: column "terminal_ip" is of type inet but expression is of type text
Simply adding "::inet" solves this issue.
When exporting a value of type interval Jailer produces: "0 years 0 mons 0 days 0 hours 0 mins 0.00 secs"
PostgreSQL states: ERROR: syntax error at or near "years"
Quoting and casting this value resloves the issue: "'0 years 0 mons 0 days 0 hours 0 mins 0.00 secs'::INTERVAL"
Anonymous
Hi Dennis,
Thanks for the report, this is indeed a bug.
Based on release 9.5.0 I have attached a patch here. If you want to test it, please replace the files "jailer.jar" and "jailer.xml" with those in the attachment.
Here is the second file.
Great. That solves the issues.
Thanks for the fast response.
fixed in release 9.5.1