Skip to content

Commit b17a989

Browse files
authored
Add correct feature flag for ClickHouse
Properly indicate array support for ClickHouse connections ClickHouse: https://clickhouse.tech/ ClickHouse .NET client: https://github.com/DarkWanderer/ClickHouse.Client
1 parent 4fb1ea2 commit b17a989

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dapper/FeatureSupport.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ internal class FeatureSupport
1010
{
1111
private static readonly FeatureSupport
1212
Default = new FeatureSupport(false),
13-
Postgres = new FeatureSupport(true);
13+
Postgres = new FeatureSupport(true),
14+
ClickHouse = new FeatureSupport(true);
1415

1516
/// <summary>
1617
/// Gets the feature set based on the passed connection
@@ -20,6 +21,7 @@ public static FeatureSupport Get(IDbConnection connection)
2021
{
2122
string name = connection?.GetType().Name;
2223
if (string.Equals(name, "npgsqlconnection", StringComparison.OrdinalIgnoreCase)) return Postgres;
24+
if (string.Equals(name, "clickhouseconnection", StringComparison.OrdinalIgnoreCase)) return ClickHouse;
2325
return Default;
2426
}
2527

0 commit comments

Comments
 (0)