From 3d33fe746a63ee3f84c592c47d450424416cb217 Mon Sep 17 00:00:00 2001 From: Meai Date: Sat, 22 Jun 2024 07:23:29 +0200 Subject: [PATCH] Allow turning off Array support in FeatureSupport.cs, fixes IN clauses for Postgres If this remains turned on then "IN" clauses don't work at all which is probably something almost everyone needs. --- Dapper/FeatureSupport.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dapper/FeatureSupport.cs b/Dapper/FeatureSupport.cs index 4d7d77e2e..3fad97b36 100644 --- a/Dapper/FeatureSupport.cs +++ b/Dapper/FeatureSupport.cs @@ -6,9 +6,9 @@ namespace Dapper /// /// Handles variances in features per DBMS /// - internal class FeatureSupport + public class FeatureSupport { - private static readonly FeatureSupport + public static readonly FeatureSupport Default = new FeatureSupport(false), Postgres = new FeatureSupport(true), ClickHouse = new FeatureSupport(true); @@ -33,6 +33,6 @@ private FeatureSupport(bool arrays) /// /// True if the db supports array columns e.g. Postgresql /// - public bool Arrays { get; } + public bool Arrays { get; set; } } }