Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2144

cdbimport fails for databases which don't support catalogs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.M3
    • 4.0.M4
    • Non-GUI Tools
    • None

    Description

      cdbimport maven goal fails if database doesn't support catalogs (e.g. postgres):

      [ERROR] Failed to execute goal org.apache.cayenne.plugins:maven-cayenne-plugin:4.0.M4-SNAPSHOT:cdbimport (default-cli) on project test-db: Error creating DataSource (org.apache.cayenne.datasource.DriverDataSource@4f8b4bd0) or DbAdapter (org.apache.cayenne.dba.postgres.PostgresAdapter@4e904fd5) for DataNodeDescriptor (org.apache.cayenne.configuration.DataNodeDescriptor@b18c4): Your database does not support catalogs on reverse engineering. It allows to connect to only one at the moment. Please don't note catalogs as param. -> [Help 1]
      

      This seems to be due to this logic https://github.com/apache/cayenne/blob/1455622fad83db8d181e2dfb0ba5f6efeeeae37e/cayenne-dbsync/src/main/java/org/apache/cayenne/dbsync/reverse/filters/FiltersConfigBuilder.java#L321 which is always adding empty catalogs to the reverse engineering configuration.

      Attachments

        Issue Links

          Activity

            People

              ntimofeev Nikita Timofeev
              demitri Dzmitry Kazimirchyk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: