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 82d32f01
authored
Nov 08, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed client passing for native pg implementation
1 parent
2fad2ef5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
lib/dialects/postgres/connector-manager.js
lib/dialects/postgres/connector-manager.js
View file @
82d32f0
var
Query
=
require
(
"./query"
)
var
Query
=
require
(
"./query"
)
,
Utils
=
require
(
"../../utils"
)
,
Utils
=
require
(
"../../utils"
)
...
@@ -110,6 +111,8 @@ module.exports = (function() {
...
@@ -110,6 +111,8 @@ module.exports = (function() {
emitter
.
emit
(
'error'
,
err
)
emitter
.
emit
(
'error'
,
err
)
break
break
}
}
}
else
{
emitter
.
emit
(
'error'
,
new
Error
(
err
.
message
))
}
}
}
else
if
(
client
)
{
}
else
if
(
client
)
{
var
timezoneCallback
=
function
()
{
var
timezoneCallback
=
function
()
{
...
@@ -139,7 +142,9 @@ module.exports = (function() {
...
@@ -139,7 +142,9 @@ module.exports = (function() {
}
else
{
}
else
{
//create one-off client
//create one-off client
this
.
client
=
new
this
.
pg
.
Client
(
uri
)
this
.
client
=
new
this
.
pg
.
Client
(
uri
)
this
.
client
.
connect
(
connectCallback
)
this
.
client
.
connect
(
function
(
err
,
client
,
done
)
{
connectCallback
(
err
,
client
||
self
.
client
,
done
)
})
}
}
}
}
...
...
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