ClickHouse.Client icon indicating copy to clipboard operation
ClickHouse.Client copied to clipboard

[BUG] Database parameter in connection string is ignored

Open Ignatella opened this issue 6 months ago • 0 comments

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

Image

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

Anything else?

Ignatella avatar Jun 18 '25 15:06 Ignatella