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 cf7aa753
authored
Jan 11, 2014
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use defaults instead of extends for dialect support
1 parent
c95ef8ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
lib/dialects/mariadb/index.js
lib/dialects/mysql/index.js
lib/dialects/postgres/index.js
lib/dialects/sqlite/index.js
lib/dialects/mariadb/index.js
View file @
cf7aa75
...
@@ -5,7 +5,7 @@ var MariaDialect = function(sequelize) {
...
@@ -5,7 +5,7 @@ var MariaDialect = function(sequelize) {
this
.
sequelize
=
sequelize
this
.
sequelize
=
sequelize
}
}
MariaDialect
.
prototype
=
_
.
extend
({
MariaDialect
.
prototype
=
_
.
defaults
({
},
MySQL
.
prototype
)
},
MySQL
.
prototype
)
...
...
lib/dialects/mysql/index.js
View file @
cf7aa75
...
@@ -5,8 +5,8 @@ var MysqlDialect = function(sequelize) {
...
@@ -5,8 +5,8 @@ var MysqlDialect = function(sequelize) {
this
.
sequelize
=
sequelize
this
.
sequelize
=
sequelize
}
}
MysqlDialect
.
prototype
.
supports
=
_
.
extend
(
Abstract
.
prototype
.
supports
,
{
MysqlDialect
.
prototype
.
supports
=
_
.
defaults
(
{
'VALUES ()'
:
true
'VALUES ()'
:
true
})
}
,
Abstract
.
prototype
.
supports
)
module
.
exports
=
MysqlDialect
module
.
exports
=
MysqlDialect
lib/dialects/postgres/index.js
View file @
cf7aa75
...
@@ -5,9 +5,9 @@ var PostgresDialect = function(sequelize) {
...
@@ -5,9 +5,9 @@ var PostgresDialect = function(sequelize) {
this
.
sequelize
=
sequelize
this
.
sequelize
=
sequelize
}
}
PostgresDialect
.
prototype
.
supports
=
_
.
extend
(
Abstract
.
prototype
.
supports
,
{
PostgresDialect
.
prototype
.
supports
=
_
.
defaults
(
{
'RETURNING'
:
true
,
'RETURNING'
:
true
,
'DEFAULT VALUES'
:
true
'DEFAULT VALUES'
:
true
})
}
,
Abstract
.
prototype
.
supports
)
module
.
exports
=
PostgresDialect
module
.
exports
=
PostgresDialect
lib/dialects/sqlite/index.js
View file @
cf7aa75
...
@@ -5,9 +5,9 @@ var SqliteDialect = function(sequelize) {
...
@@ -5,9 +5,9 @@ var SqliteDialect = function(sequelize) {
this
.
sequelize
=
sequelize
this
.
sequelize
=
sequelize
}
}
SqliteDialect
.
prototype
.
supports
=
_
.
extend
(
Abstract
.
prototype
.
supports
,
{
SqliteDialect
.
prototype
.
supports
=
_
.
defaults
(
{
'DEFAULT'
:
false
,
'DEFAULT'
:
false
,
'DEFAULT VALUES'
:
true
'DEFAULT VALUES'
:
true
})
}
,
Abstract
.
prototype
.
supports
)
module
.
exports
=
SqliteDialect
module
.
exports
=
SqliteDialect
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