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 60778406
authored
Oct 14, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into milestones/2.0.0
2 parents
ed1e6235
79757b96
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
7 deletions
Makefile
lib/dialects/postgres/query-generator.js
test/dao.test.js
test/hooks.test.js
Makefile
View file @
6077840
...
@@ -13,9 +13,9 @@ teaser:
...
@@ -13,9 +13,9 @@ teaser:
test
:
test
:
@
if
[
"
$$
GREP"
]
;
then
\
@
if
[
"
$$
GREP"
]
;
then
\
make teaser
&&
./node_modules/mocha/bin/mocha --colors --reporter
$(REPORTER)
-g
"
$$
GREP"
$(TESTS)
;
\
make teaser
&&
./node_modules/mocha/bin/mocha --colors -
t 10000 -
-reporter
$(REPORTER)
-g
"
$$
GREP"
$(TESTS)
;
\
else
\
else
\
make teaser
&&
./node_modules/mocha/bin/mocha --colors --reporter
$(REPORTER)
$(TESTS)
;
\
make teaser
&&
./node_modules/mocha/bin/mocha --colors -
t 10000 -
-reporter
$(REPORTER)
$(TESTS)
;
\
fi
fi
...
...
lib/dialects/postgres/query-generator.js
View file @
6077840
...
@@ -262,7 +262,7 @@ module.exports = (function() {
...
@@ -262,7 +262,7 @@ module.exports = (function() {
query
+=
Utils
.
_
.
template
(
joinQuery
)({
query
+=
Utils
.
_
.
template
(
joinQuery
)({
table
:
this
.
quoteIdentifiers
(
include
.
daoFactory
.
tableName
),
table
:
this
.
quoteIdentifiers
(
include
.
daoFactory
.
tableName
),
as
:
this
.
quoteIdentifier
(
include
.
as
),
as
:
this
.
quoteIdentifier
(
include
.
as
),
tableLeft
:
this
.
quoteIdentifier
s
((
include
.
association
.
associationType
===
'BelongsTo'
)
?
include
.
as
:
tableName
),
tableLeft
:
this
.
quoteIdentifier
((
include
.
association
.
associationType
===
'BelongsTo'
)
?
include
.
as
:
tableName
),
attrLeft
:
this
.
quoteIdentifier
(((
primaryKeysLeft
.
length
!==
1
)
?
'id'
:
primaryKeysLeft
[
0
])),
attrLeft
:
this
.
quoteIdentifier
(((
primaryKeysLeft
.
length
!==
1
)
?
'id'
:
primaryKeysLeft
[
0
])),
tableRight
:
this
.
quoteIdentifiers
((
include
.
association
.
associationType
===
'BelongsTo'
)
?
tableName
:
include
.
as
),
tableRight
:
this
.
quoteIdentifiers
((
include
.
association
.
associationType
===
'BelongsTo'
)
?
tableName
:
include
.
as
),
attrRight
:
this
.
quoteIdentifier
(
include
.
association
.
identifier
)
attrRight
:
this
.
quoteIdentifier
(
include
.
association
.
identifier
)
...
...
test/dao.test.js
View file @
6077840
...
@@ -13,8 +13,6 @@ chai.use(datetime)
...
@@ -13,8 +13,6 @@ chai.use(datetime)
chai
.
Assertion
.
includeStack
=
true
chai
.
Assertion
.
includeStack
=
true
describe
(
Support
.
getTestDialectTeaser
(
"DAO"
),
function
()
{
describe
(
Support
.
getTestDialectTeaser
(
"DAO"
),
function
()
{
this
.
timeout
(
10000
)
beforeEach
(
function
(
done
)
{
beforeEach
(
function
(
done
)
{
this
.
User
=
this
.
sequelize
.
define
(
'User'
,
{
this
.
User
=
this
.
sequelize
.
define
(
'User'
,
{
username
:
{
type
:
DataTypes
.
STRING
},
username
:
{
type
:
DataTypes
.
STRING
},
...
...
test/hooks.test.js
View file @
6077840
...
@@ -8,8 +8,6 @@ var chai = require('chai')
...
@@ -8,8 +8,6 @@ var chai = require('chai')
chai
.
Assertion
.
includeStack
=
true
chai
.
Assertion
.
includeStack
=
true
describe
(
Support
.
getTestDialectTeaser
(
"Hooks"
),
function
()
{
describe
(
Support
.
getTestDialectTeaser
(
"Hooks"
),
function
()
{
this
.
timeout
(
10000
)
describe
(
'#validate'
,
function
()
{
describe
(
'#validate'
,
function
()
{
describe
(
'via define'
,
function
()
{
describe
(
'via define'
,
function
()
{
describe
(
'on success'
,
function
()
{
describe
(
'on success'
,
function
()
{
...
...
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