[ https://issues.apache.org/jira/browse/CAY-2144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15674001#comment-15674001 ]
ASF GitHub Bot commented on CAY-2144: ------------------------------------- GitHub user stariy95 opened a pull request: https://github.com/apache/cayenne/pull/134 CAY-2144 cdbimport always fails for databases which don't support catalogs You can merge this pull request into a Git repository by running: $ git pull https://github.com/stariy95/cayenne CAY-2144 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cayenne/pull/134.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #134 ---- commit ead663e62596c0c3f814c0c32cc15f851e0eaff8 Author: Nikita Timofeev <stari...@gmail.com> Date: 2016-11-17T15:30:33Z CAY-2144 cdbimport always fails for databases which don't support catalogs (e.g. postgres) commit 0cf662e3440e97aef621cfcdb9f72385fb7460ab Author: Nikita Timofeev <stari...@gmail.com> Date: 2016-11-17T15:34:17Z CAY-2144 cdbimport always fails for databases which don't support catalogs (e.g. postgres) ---- > cdbimport fails for databases which don't support catalogs > ---------------------------------------------------------- > > Key: CAY-2144 > URL: https://issues.apache.org/jira/browse/CAY-2144 > Project: Cayenne > Issue Type: Bug > Components: Non-GUI Tools > Affects Versions: 4.0.M3 > Reporter: Dzmitry Kazimirchyk > > cdbimport maven goal fails if database doesn't support catalogs (e.g. > postgres): > {noformat} > [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] > {noformat} > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)