不要怂,就是干,撸起袖子干!

Commit 115600f4 by Brad Dunbar

Test a more accurate use case.

1 parent dd388240
Showing with 8 additions and 4 deletions
...@@ -108,9 +108,11 @@ suite(Support.getTestDialectTeaser('SQL'), function() { ...@@ -108,9 +108,11 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
}); });
testsql('equipment', { testsql('equipment', {
$in: current.literal('(1, 2)') $in: current.literal(
'(select order_id from product_orders where product_id = 3)'
)
}, { }, {
default: '[equipment] IN (1, 2)' default: '[equipment] IN (select order_id from product_orders where product_id = 3)'
}); });
}); });
...@@ -159,9 +161,11 @@ suite(Support.getTestDialectTeaser('SQL'), function() { ...@@ -159,9 +161,11 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
}); });
testsql('equipment', { testsql('equipment', {
$notIn: current.literal('(1, 2)') $notIn: current.literal(
'(select order_id from product_orders where product_id = 3)'
)
}, { }, {
default: '[equipment] NOT IN (1, 2)' default: '[equipment] NOT IN (select order_id from product_orders where product_id = 3)'
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!