ClickHouse.Client
ClickHouse.Client copied to clipboard
[BUG] Database parameter in connection string is ignored
Current Behavior
Hello!
I just noticed that when Database parameter is set to different value than default then in queries still default db is used what is unexpected.
Expected Behavior
Queries are executed against specified in connection string db
Steps To Reproduce
Unhandled exception. ClickHouse.Client.ClickHouseServerException (0x000001F1): Code: 497. DB::Exception: XXX: Not enough privileges. To execute this query, it's necessary to have the grant SELECT(XXX) ON default.XXXX. (ACCESS_DENIED) (version 24.8.5.115 (official build))
Environment
- Version: 7.14.0
- NET 9
- Clickhouse 24.8.5.115