@@ -253,19 +253,16 @@ public void SubStringTwoParameters()
253253
254254 // In the where clause.
255255 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 ( ) ;
257257 Assert . AreEqual ( "abcdef" , result . Description ) ;
258258
259259 // 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 ) ;
269266 }
270267 }
271268
@@ -295,12 +292,6 @@ public void SubString()
295292 Assert . AreEqual ( "abcdef" , result . Description ) ;
296293
297294
298- if ( Dialect is FirebirdDialect )
299- {
300- // Firebird only supports integer literals for start (and length).
301- return ;
302- }
303-
304295 // Following tests verify that parameters can be used.
305296
306297 hql = "from Animal a where substring(a.Description, 2, ?) = 'bcd'" ;
0 commit comments