File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
lib/thin/protocol/messages Expand file tree Collapse file tree 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...
2121#) Added clear error message when an attempt is made to establish a connection
2222 with an unsupported database version in Thin mode.
2323
24+ #) Fixed bug which caused a cursor leak if an error was thrown while
25+ processing the execution of a query.
26+
2427#) The buffer and process modules are now imported consistently instead of
2528 relying on global variable definitions, as suggested by Sławomir Osoba in
2629 `GitHub pull request #1559
Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ class MessageWithData extends Message {
9696
9797 processErrorInfo ( buf ) {
9898 super . processErrorInfo ( buf ) ;
99- this . statement . cursorId = this . errorInfo . cursorId ;
99+ if ( this . errorInfo . cursorId !== 0 ) {
100+ this . statement . cursorId = this . errorInfo . cursorId ;
101+ }
100102 if ( ! this . statement . isPlSql ) {
101103 this . statement . rowCount = this . errorInfo . rowCount ;
102104 }
You can’t perform that action at this time.
0 commit comments