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()
2719
2719
[ Test ]
2720
2720
public async Task OrderProjectionAliasedTestAsync ( )
2721
2721
{
2722
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
2723
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
2724
+
2722
2725
using ( ISession session = OpenSession ( ) )
2723
2726
using ( ITransaction t = session . BeginTransaction ( ) )
2724
2727
{
Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ public async Task FunctionsToLowerToUpperAsync()
146
146
[ Test ]
147
147
public async Task ConcatAsync ( )
148
148
{
149
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
150
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
151
+
149
152
using ( var s = OpenSession ( ) )
150
153
using ( s . BeginTransaction ( ) )
151
154
{
Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ protected override void OnTearDown()
69
69
[ Test ]
70
70
public async Task UsingSqlFunctions_ConcatAsync ( )
71
71
{
72
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
73
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
74
+
72
75
using ( ISession session = Sfi . OpenSession ( ) )
73
76
{
74
77
string result = await ( session . CreateCriteria ( typeof ( Student ) )
@@ -90,6 +93,9 @@ public async Task UsingSqlFunctions_Concat_WithCastAsync()
90
93
{
91
94
Assert . Ignore ( "Not supported by the active dialect:{0}." , Dialect ) ;
92
95
}
96
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
97
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
98
+
93
99
using ( ISession session = Sfi . OpenSession ( ) )
94
100
{
95
101
string result = await ( session . CreateCriteria ( typeof ( Student ) )
@@ -176,6 +182,9 @@ public async Task CanUseParametersWithProjectionsAsync()
176
182
[ Test ]
177
183
public async Task UsingConditionalsAsync ( )
178
184
{
185
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
186
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
187
+
179
188
using ( ISession session = Sfi . OpenSession ( ) )
180
189
{
181
190
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()
52
52
[ Test ]
53
53
public async Task HavingUsingSqlFunctions_ConcatAsync ( )
54
54
{
55
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
56
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
57
+
55
58
using ( ISession s = OpenSession ( ) )
56
59
using ( ITransaction tx = s . BeginTransaction ( ) )
57
60
{
@@ -272,4 +275,4 @@ public async Task HavingOnNotExpressionCountAsync()
272
275
}
273
276
}
274
277
}
275
- }
278
+ }
Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ public async Task ReadWriteAsync()
95
95
[ Test ]
96
96
public async Task HighScaleParameterSelectAsync ( )
97
97
{
98
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
99
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
100
+
98
101
using ( var s = OpenSession ( ) )
99
102
using ( var t = s . BeginTransaction ( ) )
100
103
{
Original file line number Diff line number Diff line change @@ -2734,6 +2734,9 @@ public void OrderProjectionTest()
2734
2734
[ Test ]
2735
2735
public void OrderProjectionAliasedTest ( )
2736
2736
{
2737
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
2738
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
2739
+
2737
2740
using ( ISession session = OpenSession ( ) )
2738
2741
using ( ITransaction t = session . BeginTransaction ( ) )
2739
2742
{
Original file line number Diff line number Diff line change @@ -135,6 +135,9 @@ public void FunctionsToLowerToUpper()
135
135
[ Test ]
136
136
public void Concat ( )
137
137
{
138
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
139
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
140
+
138
141
using ( var s = OpenSession ( ) )
139
142
using ( s . BeginTransaction ( ) )
140
143
{
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ protected override void OnTearDown()
58
58
[ Test ]
59
59
public void UsingSqlFunctions_Concat ( )
60
60
{
61
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
62
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
63
+
61
64
using ( ISession session = Sfi . OpenSession ( ) )
62
65
{
63
66
string result = session . CreateCriteria ( typeof ( Student ) )
@@ -79,6 +82,9 @@ public void UsingSqlFunctions_Concat_WithCast()
79
82
{
80
83
Assert . Ignore ( "Not supported by the active dialect:{0}." , Dialect ) ;
81
84
}
85
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
86
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
87
+
82
88
using ( ISession session = Sfi . OpenSession ( ) )
83
89
{
84
90
string result = session . CreateCriteria ( typeof ( Student ) )
@@ -165,6 +171,9 @@ public void CanUseParametersWithProjections()
165
171
[ Test ]
166
172
public void UsingConditionals ( )
167
173
{
174
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
175
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
176
+
168
177
using ( ISession session = Sfi . OpenSession ( ) )
169
178
{
170
179
string result = session . CreateCriteria ( typeof ( Student ) )
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ protected override void OnTearDown()
41
41
[ Test ]
42
42
public void HavingUsingSqlFunctions_Concat ( )
43
43
{
44
+ if ( TestDialect . HasBrokenTypeInferenceOnSelectedParameters )
45
+ Assert . Ignore ( "Current dialect does not support this test" ) ;
46
+
44
47
using ( ISession s = OpenSession ( ) )
45
48
using ( ITransaction tx = s . BeginTransaction ( ) )
46
49
{
@@ -261,4 +264,4 @@ public void HavingOnNotExpressionCount()
261
264
}
262
265
}
263
266
}
264
- }
267
+ }
Original file line number Diff line number Diff line change @@ -143,5 +143,16 @@ public bool SupportsSqlType(SqlType sqlType)
143
143
/// Some databases fail when a connection is enlisted during the first phase of a two phase commit.
144
144
/// </summary>
145
145
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 ;
146
157
}
147
158
}
You can’t perform that action at this time.
0 commit comments