File tree Expand file tree Collapse file tree 12 files changed +67
-3
lines changed Expand file tree Collapse file tree 12 files changed +67
-3
lines changed Original file line number Diff line number Diff line change @@ -2719,6 +2719,9 @@ public async Task OrderProjectionTestAsync()
27192719 [ Test ]
27202720 public async Task OrderProjectionAliasedTestAsync ( )
27212721 {
2722+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
2723+ Assert . Ignore ( "Current dialect does not support this test" ) ;
2724+
27222725 using ( ISession session = OpenSession ( ) )
27232726 using ( ITransaction t = session . BeginTransaction ( ) )
27242727 {
Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ public async Task FunctionsToLowerToUpperAsync()
146146 [ Test ]
147147 public async Task ConcatAsync ( )
148148 {
149+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
150+ Assert . Ignore ( "Current dialect does not support this test" ) ;
151+
149152 using ( var s = OpenSession ( ) )
150153 using ( s . BeginTransaction ( ) )
151154 {
Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ protected override void OnTearDown()
6969 [ Test ]
7070 public async Task UsingSqlFunctions_ConcatAsync ( )
7171 {
72+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
73+ Assert . Ignore ( "Current dialect does not support this test" ) ;
74+
7275 using ( ISession session = Sfi . OpenSession ( ) )
7376 {
7477 string result = await ( session . CreateCriteria ( typeof ( Student ) )
@@ -90,6 +93,9 @@ public async Task UsingSqlFunctions_Concat_WithCastAsync()
9093 {
9194 Assert . Ignore ( "Not supported by the active dialect:{0}." , Dialect ) ;
9295 }
96+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
97+ Assert . Ignore ( "Current dialect does not support this test" ) ;
98+
9399 using ( ISession session = Sfi . OpenSession ( ) )
94100 {
95101 string result = await ( session . CreateCriteria ( typeof ( Student ) )
@@ -176,6 +182,9 @@ public async Task CanUseParametersWithProjectionsAsync()
176182 [ Test ]
177183 public async Task UsingConditionalsAsync ( )
178184 {
185+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
186+ Assert . Ignore ( "Current dialect does not support this test" ) ;
187+
179188 using ( ISession session = Sfi . OpenSession ( ) )
180189 {
181190 string result = await ( session . CreateCriteria ( typeof ( Student ) )
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ protected override void OnTearDown()
5252 [ Test ]
5353 public async Task HavingUsingSqlFunctions_ConcatAsync ( )
5454 {
55+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
56+ Assert . Ignore ( "Current dialect does not support this test" ) ;
57+
5558 using ( ISession s = OpenSession ( ) )
5659 using ( ITransaction tx = s . BeginTransaction ( ) )
5760 {
@@ -272,4 +275,4 @@ public async Task HavingOnNotExpressionCountAsync()
272275 }
273276 }
274277 }
275- }
278+ }
Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ public async Task ReadWriteAsync()
9595 [ Test ]
9696 public async Task HighScaleParameterSelectAsync ( )
9797 {
98+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
99+ Assert . Ignore ( "Current dialect does not support this test" ) ;
100+
98101 using ( var s = OpenSession ( ) )
99102 using ( var t = s . BeginTransaction ( ) )
100103 {
Original file line number Diff line number Diff line change @@ -2734,6 +2734,9 @@ public void OrderProjectionTest()
27342734 [ Test ]
27352735 public void OrderProjectionAliasedTest ( )
27362736 {
2737+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
2738+ Assert . Ignore ( "Current dialect does not support this test" ) ;
2739+
27372740 using ( ISession session = OpenSession ( ) )
27382741 using ( ITransaction t = session . BeginTransaction ( ) )
27392742 {
Original file line number Diff line number Diff line change @@ -135,6 +135,9 @@ public void FunctionsToLowerToUpper()
135135 [ Test ]
136136 public void Concat ( )
137137 {
138+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
139+ Assert . Ignore ( "Current dialect does not support this test" ) ;
140+
138141 using ( var s = OpenSession ( ) )
139142 using ( s . BeginTransaction ( ) )
140143 {
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ protected override void OnTearDown()
5858 [ Test ]
5959 public void UsingSqlFunctions_Concat ( )
6060 {
61+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
62+ Assert . Ignore ( "Current dialect does not support this test" ) ;
63+
6164 using ( ISession session = Sfi . OpenSession ( ) )
6265 {
6366 string result = session . CreateCriteria ( typeof ( Student ) )
@@ -79,6 +82,9 @@ public void UsingSqlFunctions_Concat_WithCast()
7982 {
8083 Assert . Ignore ( "Not supported by the active dialect:{0}." , Dialect ) ;
8184 }
85+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
86+ Assert . Ignore ( "Current dialect does not support this test" ) ;
87+
8288 using ( ISession session = Sfi . OpenSession ( ) )
8389 {
8490 string result = session . CreateCriteria ( typeof ( Student ) )
@@ -165,6 +171,9 @@ public void CanUseParametersWithProjections()
165171 [ Test ]
166172 public void UsingConditionals ( )
167173 {
174+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
175+ Assert . Ignore ( "Current dialect does not support this test" ) ;
176+
168177 using ( ISession session = Sfi . OpenSession ( ) )
169178 {
170179 string result = session . CreateCriteria ( typeof ( Student ) )
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ protected override void OnTearDown()
4141 [ Test ]
4242 public void HavingUsingSqlFunctions_Concat ( )
4343 {
44+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
45+ Assert . Ignore ( "Current dialect does not support this test" ) ;
46+
4447 using ( ISession s = OpenSession ( ) )
4548 using ( ITransaction tx = s . BeginTransaction ( ) )
4649 {
@@ -261,4 +264,4 @@ public void HavingOnNotExpressionCount()
261264 }
262265 }
263266 }
264- }
267+ }
Original file line number Diff line number Diff line change @@ -143,5 +143,16 @@ public bool SupportsSqlType(SqlType sqlType)
143143 /// Some databases fail when a connection is enlisted during the first phase of a two phase commit.
144144 /// </summary>
145145 public virtual bool SupportsUsingConnectionOnSystemTransactionPrepare => true ;
146+
147+ /// <summary>
148+ /// Some databases (provider?) fails to compute adequate column types for queries which columns
149+ /// computing include a parameter value.
150+ /// </summary>
151+ /// <remarks>
152+ /// This property is not set to true for Firebird although it seems to be affected too. But its driver
153+ /// currently has a hack for casting all parameters in select and where clauses in order to explicit
154+ /// their type in the query.
155+ /// </remarks>
156+ public virtual bool HasBrokenTypeInferenceOnSelectedParameters => false ;
146157 }
147158}
You can’t perform that action at this time.
0 commit comments