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 37ff8760
authored
Apr 27, 2016
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(package): Add pg-types as a separate dependency
1 parent
a7a40e0e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
package.json
test/integration/data-types.test.js
package.json
View file @
37ff876
...
...
@@ -69,6 +69,7 @@
"pg"
:
"^4.4.6"
,
"pg-hstore"
:
"^2.3.1"
,
"pg-native"
:
"^1.8.0"
,
"pg-types"
:
"^1.11.0"
,
"sinon"
:
"^1.17.3"
,
"sinon-chai"
:
"^2.8.0"
,
"sqlite3"
:
"^3.1.2"
,
...
...
test/integration/data-types.test.js
View file @
37ff876
...
...
@@ -19,7 +19,7 @@ describe(Support.getTestDialectTeaser('DataTypes'), function() {
// Restore some sanity by resetting all parsers
switch
(
dialect
)
{
case
'postgres'
:
var
types
=
require
(
'
../../node_modules/pg/node_modules/
pg-types'
);
var
types
=
require
(
'pg-types'
);
_
.
each
(
DataTypes
,
function
(
dataType
)
{
if
(
dataType
.
types
&&
dataType
.
types
.
postgres
)
{
...
...
@@ -28,10 +28,10 @@ describe(Support.getTestDialectTeaser('DataTypes'), function() {
});
}
});
require
(
'
../../node_modules/pg/node_modules/
pg-types/lib/binaryParsers'
).
init
(
function
(
oid
,
converter
)
{
require
(
'pg-types/lib/binaryParsers'
).
init
(
function
(
oid
,
converter
)
{
types
.
setTypeParser
(
oid
,
'binary'
,
converter
);
});
require
(
'
../../node_modules/pg/node_modules/
pg-types/lib/textParsers'
).
init
(
function
(
oid
,
converter
)
{
require
(
'pg-types/lib/textParsers'
).
init
(
function
(
oid
,
converter
)
{
types
.
setTypeParser
(
oid
,
'text'
,
converter
);
});
break
;
...
...
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