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 b1d48a48
authored
Jan 07, 2014
by
maximeCony
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't add tableName if not defined
1 parent
82f88ac8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
test/dao-factory.test.js
test/dao-factory.test.js
View file @
b1d48a4
...
@@ -1709,10 +1709,13 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -1709,10 +1709,13 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
it
(
'should not fail with an include'
,
function
(
done
)
{
it
(
'should not fail with an include'
,
function
(
done
)
{
var
tableName
=
'"'
+
this
.
Project
.
tableName
+
'"'
var
tableName
=
''
if
(
this
.
Project
.
tableName
)
{
tableName
=
'"'
+
this
.
Project
.
tableName
+
'".'
}
this
.
User
.
findAll
({
this
.
User
.
findAll
({
where
:
[
where
:
[
tableName
+
'
.
"title" = \'republic\' '
tableName
+
'"title" = \'republic\' '
],
],
include
:
[
include
:
[
{
model
:
this
.
Project
}
{
model
:
this
.
Project
}
...
@@ -1730,10 +1733,13 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
...
@@ -1730,10 +1733,13 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
it
(
'should not overwrite a specified deletedAt'
,
function
(
done
)
{
it
(
'should not overwrite a specified deletedAt'
,
function
(
done
)
{
var
tableName
=
'"'
+
this
.
User
.
tableName
+
'"'
var
tableName
=
''
if
(
this
.
User
.
tableName
)
{
tableName
=
'"'
+
this
.
User
.
tableName
+
'".'
}
this
.
User
.
findAll
({
this
.
User
.
findAll
({
where
:
[
where
:
[
tableName
+
'
.
"deletedAt" IS NOT NULL '
tableName
+
'"deletedAt" IS NOT NULL '
],
],
include
:
[
include
:
[
{
model
:
this
.
Project
}
{
model
:
this
.
Project
}
...
...
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