Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

[BUG] Database parameter in connection string is ignored #644

@Ignatella

Description

@Ignatella

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions