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 ab1eb32c
authored
Jan 04, 2014
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DEFAULT support is not the same as DEFAULT VALUES support
1 parent
cf21f351
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
lib/dialects/abstract/dialect.js
lib/dialects/abstract/query-generator.js
lib/dialects/postgres.js
lib/dialects/abstract/dialect.js
View file @
ab1eb32
...
@@ -4,7 +4,8 @@ var AbstractDialect = function() {
...
@@ -4,7 +4,8 @@ var AbstractDialect = function() {
AbstractDialect
.
prototype
.
supports
=
{
AbstractDialect
.
prototype
.
supports
=
{
'RETURNING'
:
false
,
'RETURNING'
:
false
,
'DEFAULT'
:
true
'DEFAULT'
:
true
,
'DEFAULT VALUES'
:
false
}
}
module
.
exports
=
AbstractDialect
module
.
exports
=
AbstractDialect
\ No newline at end of file
lib/dialects/abstract/query-generator.js
View file @
ab1eb32
...
@@ -113,7 +113,7 @@ module.exports = (function() {
...
@@ -113,7 +113,7 @@ module.exports = (function() {
,
key
,
key
,
value
,
value
if
(
this
.
_dialect
.
supports
[
'DEFAULT'
])
{
if
(
this
.
_dialect
.
supports
[
'DEFAULT
VALUES
'
])
{
emptyQuery
+=
" DEFAULT VALUES"
emptyQuery
+=
" DEFAULT VALUES"
}
}
...
...
lib/dialects/postgres.js
View file @
ab1eb32
...
@@ -6,7 +6,8 @@ var PostgresDialect = function(sequelize) {
...
@@ -6,7 +6,8 @@ var PostgresDialect = function(sequelize) {
}
}
PostgresDialect
.
prototype
.
supports
=
_
.
extend
(
Abstract
.
prototype
.
supports
,
{
PostgresDialect
.
prototype
.
supports
=
_
.
extend
(
Abstract
.
prototype
.
supports
,
{
'RETURNING'
:
true
'RETURNING'
:
true
,
'DEFAULT VALUES'
:
true
})
})
module
.
exports
=
PostgresDialect
module
.
exports
=
PostgresDialect
\ No newline at end of file
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