claeis / ili2db

interlis import/export to relational databases
30 stars 30 forks source link

ili2pg: if dbhost is not provided, ili2pg ignores dbhost and it takes the default value #494

Closed yesidpol closed 12 months ago

yesidpol commented 2 years ago

If dbhost is not provided, ili2pg takes the default dbport value although the dbport value has been specified.

java -jar E:\yesid\code\0.1\..\ili2pg-4.9.0-bindist\ili2pg-4.9.0.jar --dbport 5433 --dbdatabase pckg_test --smart2Inheritance --dbusr postgres --dbpwd 123456 --setupPgExt --schemaimport --dbschema abc e:\yesid\code\0.1\ModelC.ili 

Info: dburl <jdbc:postgresql:pckg_test>
Info: dbusr <postgres>
Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  Connection refused: connect
Info: ili2pg-4.9.0-eb3a0d51869bd2adeeb51fe7aba4b526fe002c1a
Info: ili2c-5.2.8-61f7212579ac3c4ae219d511afb5a0615855bc73
Info: iox-ili-1.21.12-87afbf0c8bd2241377fc518d8c40e4e99946bb23
Info: java.version 1.8.0_333
Info: user.name <yesid>
Info: maxMemory 253440 KB
Info: currentTime 2022-10-25 22:49:23
Info: dbschema <abc>
Info: dburl <jdbc:postgresql:pckg_test>
Info: dbusr <postgres>
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    Connection refused: connect