-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempted to write multiple times to …, please check your configuration #2347
Comments
Do you configure separate packages for the multiple schemas? |
I filter the tables via tableNamePattern, and tried to filter via schemaPattern, but this has no effect. (schema is always null, catalog is different depending on database name). Edit1: db looks like this:
querydsl/querydsl-sql-codegen/src/main/java/com/querydsl/sql/codegen/MetaDataExporter.java Line 257 in 8f96f41
returns two items who look like this in MetaDataExporter::handleTable (pseudo json):
Edit2: I only use the schema db1. db2 is not used at all by my application, but the user happens to have access to it. |
I have same issue ! |
Workaround : Create a new user in database which has access to only the given database for which you want to create Q files for. Done. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
With version 4.2.1 I get the error
querydsl/querydsl-sql-codegen/src/main/java/com/querydsl/sql/codegen/MetaDataExporter.java
Line 430 in 8f96f41
while using querydsl-maven-plugin together with
jdbcDriver com.mysql.cj.jdbc.Driver
(mysql-connector-java 8.0.11). This happens because the user I use to connect to MySQL has access to multiple databases. As a workaround I had to addnullCatalogMeansCurrent=true
tojdbcUrl
.The text was updated successfully, but these errors were encountered: