-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Hardcoded "postgres" string DB in function openDBConnection() causes table being created in the DB named "postgres" #48
Comments
Sorry, I forgot. You can add "dbname=xxx" to dsn in order to use normally before I fix this bug. @16pj |
I use dbname but it gets overridden by "dbname=postgres". |
Can you tell me where has "dbname=postgres" ? |
@16pj could you provide your code? |
@00LT00 The hardcoded value is at line 146 of adapter.go tag: 3.0.2. But I see that it might have already been fixed in master 6 days ago by you. db, err = openDBConnection(a.driverName, a.dataSourceName+" dbname="+a.databaseName) Thanks |
@16pj so I think this issue can be closed. |
Sorry I'm new to creating issues here.
file: adapter.go
version tag: 3.02
If the a.dbSpecified is set to true then isn't it expected to use the db name specified in the datasource string, but looks like the hardcoded value "postgres" in openDBConnection() [adapter.go] makes it override the db and uses "postgres" instead.
The text was updated successfully, but these errors were encountered: