File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,8 @@ Client.prototype.connect = function (callback) {
138
138
139
139
// hook up query handling events to connection
140
140
// after the connection initially becomes ready for queries
141
- con . once ( 'readyForQuery' , function ( ) {
141
+ con . once ( 'readyForQuery' , function ( msg ) {
142
+ self . _transactionStatus = msg . status
142
143
self . _connecting = false
143
144
self . _connected = true
144
145
self . _attachListeners ( con )
@@ -155,8 +156,9 @@ Client.prototype.connect = function (callback) {
155
156
self . emit ( 'connect' )
156
157
} )
157
158
158
- con . on ( 'readyForQuery' , function ( ) {
159
+ con . on ( 'readyForQuery' , function ( msg ) {
159
160
var activeQuery = self . activeQuery
161
+ self . _transactionStatus = msg . status
160
162
self . activeQuery = null
161
163
self . readyForQuery = true
162
164
if ( activeQuery ) {
You can’t perform that action at this time.
0 commit comments