@@ -253,19 +253,16 @@ public void SubStringTwoParameters()
253
253
254
254
// In the where clause.
255
255
hql = "from Animal a where substring(a.Description, 4) = 'def'" ;
256
- var result = ( Animal ) s . CreateQuery ( hql ) . UniqueResult ( ) ;
256
+ var result = ( Animal ) s . CreateQuery ( hql ) . UniqueResult ( ) ;
257
257
Assert . AreEqual ( "abcdef" , result . Description ) ;
258
258
259
259
// With parameters and nested function calls.
260
- if ( ! ( Dialect is FirebirdDialect ) ) // Firebird only supports integer literals for start (and length).
261
- {
262
- hql = "from Animal a where substring(concat(a.Description, ?), :start) = 'deffoo'" ;
263
- result = ( Animal ) s . CreateQuery ( hql )
264
- . SetParameter ( 0 , "foo" )
265
- . SetParameter ( "start" , 4 )
266
- . UniqueResult ( ) ;
267
- Assert . AreEqual ( "abcdef" , result . Description ) ;
268
- }
260
+ hql = "from Animal a where substring(concat(a.Description, ?), :start) = 'deffoo'" ;
261
+ result = ( Animal ) s . CreateQuery ( hql )
262
+ . SetParameter ( 0 , "foo" )
263
+ . SetParameter ( "start" , 4 )
264
+ . UniqueResult ( ) ;
265
+ Assert . AreEqual ( "abcdef" , result . Description ) ;
269
266
}
270
267
}
271
268
@@ -295,12 +292,6 @@ public void SubString()
295
292
Assert . AreEqual ( "abcdef" , result . Description ) ;
296
293
297
294
298
- if ( Dialect is FirebirdDialect )
299
- {
300
- // Firebird only supports integer literals for start (and length).
301
- return ;
302
- }
303
-
304
295
// Following tests verify that parameters can be used.
305
296
306
297
hql = "from Animal a where substring(a.Description, 2, ?) = 'bcd'" ;
0 commit comments