File tree 2 files changed +6
-1
lines changed
lib/thin/protocol/messages
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ node-oracledb `v6.0.1 <https://github.com/oracle/node-oracledb/compare/v6.0.0...
21
21
#) Added clear error message when an attempt is made to establish a connection
22
22
with an unsupported database version in Thin mode.
23
23
24
+ #) Fixed bug which caused a cursor leak if an error was thrown while
25
+ processing the execution of a query.
26
+
24
27
#) The buffer and process modules are now imported consistently instead of
25
28
relying on global variable definitions, as suggested by Sławomir Osoba in
26
29
`GitHub pull request #1559
Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ class MessageWithData extends Message {
96
96
97
97
processErrorInfo ( buf ) {
98
98
super . processErrorInfo ( buf ) ;
99
- this . statement . cursorId = this . errorInfo . cursorId ;
99
+ if ( this . errorInfo . cursorId !== 0 ) {
100
+ this . statement . cursorId = this . errorInfo . cursorId ;
101
+ }
100
102
if ( ! this . statement . isPlSql ) {
101
103
this . statement . rowCount = this . errorInfo . rowCount ;
102
104
}
You can’t perform that action at this time.
0 commit comments