1
1
using System . Linq ;
2
2
using NHibernate . Cfg ;
3
+ using NHibernate . Dialect ;
3
4
using NUnit . Framework ;
4
5
5
6
namespace NHibernate . Test . Linq
@@ -366,6 +367,9 @@ public void DescendingOrderedPagedProductsWithInnerProjection()
366
367
[ Test ]
367
368
public void PagedProductsWithOuterWhereClause ( )
368
369
{
370
+ if ( Dialect is MySQLDialect )
371
+ Assert . Ignore ( "MySQL does not support LIMIT in subqueries." ) ;
372
+
369
373
//NH-2588
370
374
var inMemoryIds = db . Products . ToList ( )
371
375
. OrderByDescending ( x => x . ProductId )
@@ -385,6 +389,9 @@ public void PagedProductsWithOuterWhereClause()
385
389
[ Test ]
386
390
public void PagedProductsWithOuterWhereClauseResort ( )
387
391
{
392
+ if ( Dialect is MySQLDialect )
393
+ Assert . Ignore ( "MySQL does not support LIMIT in subqueries." ) ;
394
+
388
395
//NH-2588
389
396
var inMemoryIds = db . Products . ToList ( )
390
397
. OrderByDescending ( x => x . ProductId )
@@ -406,6 +413,9 @@ public void PagedProductsWithOuterWhereClauseResort()
406
413
[ Test ]
407
414
public void PagedProductsWithInnerAndOuterWhereClauses ( )
408
415
{
416
+ if ( Dialect is MySQLDialect )
417
+ Assert . Ignore ( "MySQL does not support LIMIT in subqueries." ) ;
418
+
409
419
//NH-2588
410
420
var inMemoryIds = db . Products . ToList ( )
411
421
. Where ( x => x . UnitsInStock < 100 )
@@ -429,6 +439,9 @@ public void PagedProductsWithInnerAndOuterWhereClauses()
429
439
[ Test ]
430
440
public void PagedProductsWithOuterWhereClauseEquivalent ( )
431
441
{
442
+ if ( Dialect is MySQLDialect )
443
+ Assert . Ignore ( "MySQL does not support LIMIT in subqueries." ) ;
444
+
432
445
//NH-2588
433
446
var inMemoryIds = db . Products . ToList ( )
434
447
. OrderByDescending ( x => x . ProductId )
@@ -452,6 +465,9 @@ public void PagedProductsWithOuterWhereClauseEquivalent()
452
465
[ Test ]
453
466
public void PagedProductsWithOuterWhereClauseAndProjection ( )
454
467
{
468
+ if ( Dialect is MySQLDialect )
469
+ Assert . Ignore ( "MySQL does not support LIMIT in subqueries." ) ;
470
+
455
471
//NH-2588
456
472
var inMemoryIds = db . Products . ToList ( )
457
473
. OrderByDescending ( x => x . ProductId )
@@ -473,6 +489,9 @@ public void PagedProductsWithOuterWhereClauseAndProjection()
473
489
[ Test ]
474
490
public void PagedProductsWithOuterWhereClauseAndComplexProjection ( )
475
491
{
492
+ if ( Dialect is MySQLDialect )
493
+ Assert . Ignore ( "MySQL does not support LIMIT in subqueries." ) ;
494
+
476
495
//NH-2588
477
496
var inMemoryIds = db . Products . ToList ( )
478
497
. OrderByDescending ( x => x . ProductId )
0 commit comments