Skip to content

Breaking Change: Constructor signature change breaks LinqToDB compatibility #13

@concertdictate

Description

@concertdictate

Version: 0.7.19 Issue: Breaking change in ClickHouseConnection constructor

Description
The constructor signature for ClickHouseConnection was changed in version 0.7.19 from:
ClickHouseConnection(string connectionString)
to:
ClickHouseConnection(string connectionString, bool parameter)

This breaking change affects LinqToDB integration, as LinqToDB expects the single-parameter constructor and fails with:
LinqToDB.LinqToDBException: Constructor not found in target type: ClickHouse.Driver.ADO.ClickHouseConnection..ctor(String)

Impact
LinqToDB users cannot upgrade to ClickHouse.Driver 0.7.19+
Forces downgrade to 0.7.18 to maintain compatibility
Breaks existing integrations that rely on the previous constructor signature

Reproduction

var opt = new DataOptions()
    .UseClickHouse(ClickHouseProvider.ClickHouseDriver)
    .UseConnectionString(connectionString);

  await using var db = new DataConnection(opt);
        var result = await db.ExecuteAsync<string>("SELECT version()");

Suggestion
Consider maintaining backward compatibility by:

Keeping the single-parameter constructor overload
Documenting this as a breaking change in release notes
Environment
ClickHouse.Driver: 0.7.19
LinqToDB: RC3
Framework: .NET
This affects any ORM or library that dynamically creates ClickHouseConnection instances using reflection with the string-only constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions