[go: up one dir, main page]

Menu

#43 PostgreSQL: Export of inet and interval

v1.0_(example)
pending-fixed
None
5
2020-08-05
2020-07-30
No

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"

Discussion

  • Ralf Wisser

    Ralf Wisser - 2020-07-31

    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.

     
    • Ralf Wisser

      Ralf Wisser - 2020-07-31

      Here is the second file.

       
  • Dennis Nowak

    Dennis Nowak - 2020-07-31

    Great. That solves the issues.
    Thanks for the fast response.

     
  • Ralf Wisser

    Ralf Wisser - 2020-08-05
    • status: open --> pending-fixed
    • assigned_to: Ralf Wisser
     
  • Ralf Wisser

    Ralf Wisser - 2020-08-05

    fixed in release 9.5.1

     

Anonymous
Anonymous

Add attachments
Cancel