Skip to content
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

bug ? Postgresql Table exist? #218

Closed
javlock opened this issue Aug 10, 2021 · 3 comments
Closed

bug ? Postgresql Table exist? #218

javlock opened this issue Aug 10, 2021 · 3 comments

Comments

@javlock
Copy link

javlock commented Aug 10, 2021

info:

deps:

ormlite-core,ormlite-jdbc version:5.6
DB:postgresql 13.3-3

code:

private String createUrl(String host, int port, String dbName, String userName, String userPasswd, boolean ssl) {
return "jdbc:postgresql://" + host + ":" + port + "/" + dbName + "?user=" + userName + "&password=" + userPasswd
+ "&ssl=" + ssl;
}

connectionSource = new JdbcPooledConnectionSource(databaseUrl);
this.urlDAO = DaoManager.createDao(connectionSource, UrlData.class);
TableUtils.createTableIfNotExists(connectionSource, UrlData.class);//EXCEPTION

trace:

Screenshot_20210810_082558

@javlock
Copy link
Author

javlock commented Aug 10, 2021

Screenshot_20210810_082731

@javlock
Copy link
Author

javlock commented Aug 10, 2021

occurs when createTableIfNotExists is called when the table already exists.

@j256
Copy link
Owner

j256 commented Aug 16, 2021

Duplicate of #20

@j256 j256 marked this as a duplicate of #20 Aug 16, 2021
@j256 j256 closed this as completed Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants