Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 36bd479

Browse files
committed
Ignore tests with known limitations in MySql
1 parent d5451ef commit 36bd479

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tests/ServiceStack.OrmLite.Tests/Expression/SqlExpressionTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ public void Can_OrderBy_Fields_with_different_sort_directions()
309309
[Test]
310310
public void Can_select_limit_on_Table_with_References()
311311
{
312+
//This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
313+
if (Dialect == Dialect.MySql) return;
314+
312315
using (var db = OpenDbConnection())
313316
{
314317
CustomerOrdersUseCase.DropTables(db); //Has conflicting 'Order' table
@@ -515,7 +518,8 @@ public void Can_perform_a_crossjoin_without_a_join_expression()
515518
[Test]
516519
public void Can_perform_a_crossjoin_with_a_join_expression()
517520
{
518-
using (var db = OpenDbConnection()) {
521+
using (var db = OpenDbConnection())
522+
{
519523
db.DropAndCreateTable<CrossJoinTableA>();
520524
db.DropAndCreateTable<CrossJoinTableB>();
521525

tests/ServiceStack.OrmLite.Tests/LoadReferencesJoinTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@ public void Can_load_references_with_OrderBy()
607607
[Test]
608608
public void Can_load_references_with_OrderBy_and_Paging()
609609
{
610+
//This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
611+
if (Dialect == Dialect.MySql) return;
612+
610613
db.DropTable<Parent>();
611614
db.DropTable<Child>();
612615
db.CreateTable<Child>();

0 commit comments

Comments
 (0)