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 6e8793c2
authored
May 11, 2014
by
Mick Hansen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1743 from overlookmotel/master
Removed tabs where should be spaces
2 parents
c20fa816
e40e6474
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
3 additions
and
4 deletions
lib/dialects/abstract/index.js
lib/dialects/mysql/index.js
lib/dialects/postgres/index.js
lib/dialects/sqlite/index.js
lib/instance-validator.js
lib/query-interface.js
lib/query-types.js
test/dao.test.js
test/sequelize.test.js
lib/dialects/abstract/index.js
View file @
6e8793c
lib/dialects/mysql/index.js
View file @
6e8793c
lib/dialects/postgres/index.js
View file @
6e8793c
lib/dialects/sqlite/index.js
View file @
6e8793c
lib/instance-validator.js
View file @
6e8793c
...
@@ -253,11 +253,10 @@ InstanceValidator.prototype._builtinAttrValidate = function(value, field) {
...
@@ -253,11 +253,10 @@ InstanceValidator.prototype._builtinAttrValidate = function(value, field) {
// Check for custom validator.
// Check for custom validator.
if
(
typeof
test
===
'function'
)
{
if
(
typeof
test
===
'function'
)
{
return
validators
.
push
(
self
.
_invokeCustomValidator
(
test
,
validatorType
,
return
validators
.
push
(
self
.
_invokeCustomValidator
(
test
,
validatorType
,
true
,
value
,
field
))
true
,
value
,
field
))
}
}
var
validatorPromise
=
self
.
_invokeBuiltinValidator
(
value
,
test
,
validatorType
,
field
)
;
var
validatorPromise
=
self
.
_invokeBuiltinValidator
(
value
,
test
,
validatorType
,
field
)
// errors are handled in settling, stub this
// errors are handled in settling, stub this
validatorPromise
.
catch
(
noop
)
validatorPromise
.
catch
(
noop
)
validators
.
push
(
validatorPromise
)
validators
.
push
(
validatorPromise
)
...
...
lib/query-interface.js
View file @
6e8793c
lib/query-types.js
View file @
6e8793c
test/dao.test.js
View file @
6e8793c
...
@@ -58,7 +58,7 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
...
@@ -58,7 +58,7 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
done
()
done
()
})
})
}).
error
(
function
(
err
)
{
}).
error
(
function
(
err
)
{
done
(
err
);
done
(
err
)
});
});
})
})
})
})
...
...
test/sequelize.test.js
View file @
6e8793c
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