Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 115600f4
authored
Mar 12, 2015
by
Brad Dunbar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test a more accurate use case.
1 parent
dd388240
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
test/unit/sql/where.test.js
test/unit/sql/where.test.js
View file @
115600f
...
...
@@ -108,9 +108,11 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
});
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() {
});
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
)'
});
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment