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 8c274f0a
authored
May 28, 2013
by
reedog117
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change to fix timezone issue
1 parent
c5848100
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
lib/dialects/mariadb/query.js
spec-jasmine/config/config.js
spec-jasmine/dao-factory.spec.js
spec-jasmine/dao.spec.js
lib/dialects/mariadb/query.js
View file @
8c274f0
...
...
@@ -40,7 +40,7 @@ module.exports = (function() {
}
else
if
(
parseIso8601
.
call
(
this
,
row
[
prop
])
)
{
// if string can be converted into a JS date, it probably
// is a JS date -- replace the string with the date
row
[
prop
]
=
parseIso8601
.
call
(
this
,
row
[
prop
])
row
[
prop
]
=
parseIso8601
.
call
(
this
,
row
[
prop
]
+
'Z'
)
}
else
if
(
!
isNaN
(
row
[
prop
])
)
{
// take care of strings that are really numbers
row
[
prop
]
=
+
(
row
[
prop
]);
...
...
spec-jasmine/config/config.js
View file @
8c274f0
...
...
@@ -13,6 +13,15 @@ module.exports = {
pool
:
{
maxConnections
:
5
,
maxIdleTime
:
30
}
},
mariadb
:
{
username
:
"root"
,
password
:
null
,
database
:
'sequelize_test'
,
host
:
'127.0.0.1'
,
port
:
3306
,
pool
:
{
maxConnections
:
5
,
maxIdleTime
:
30
}
},
sqlite
:
{
},
...
...
spec-jasmine/dao-factory.spec.js
View file @
8c274f0
var
config
=
require
(
"./config/config"
)
,
Sequelize
=
require
(
"../index"
)
,
dialects
=
[
'sqlite'
,
'mysql'
,
'postgres'
]
,
dialects
=
[
'sqlite'
,
'mysql'
,
'
mariadb'
,
'
postgres'
]
describe
(
'DAOFactory'
,
function
()
{
dialects
.
forEach
(
function
(
dialect
)
{
...
...
spec-jasmine/dao.spec.js
View file @
8c274f0
var
config
=
require
(
"./config/config"
)
,
Sequelize
=
require
(
"../index"
)
,
dialects
=
[
'sqlite'
,
'mysql'
,
'postgres'
]
,
dialects
=
[
'sqlite'
,
'mysql'
,
'
mariadb'
,
'
postgres'
]
describe
(
'DAO'
,
function
()
{
dialects
.
forEach
(
function
(
dialect
)
{
...
...
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