File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
- Changed write-only attributes to allow console.log() on Connection objects. Note the attribute values will show as null; refer to the documentation.
10
10
11
- - Remove non-portable memory allocation for queries that return NULL.
11
+ - Removed non-portable memory allocation for queries that return NULL.
12
12
13
13
- Added check to make sure ` maxRows ` is greater than zero for non-ResultSet queries.
14
14
24
24
25
25
- Added a ` type ` property to the Lob class to distinguish CLOB and BLOB types.
26
26
27
+ - Corrected the order of Stream 'end' and 'close' events when reading a LOB.
28
+
27
29
- Made installation halt sooner for Node.js versions currently known to be unusable.
28
30
29
31
## node-oracledb v1.1.0 (3 Sep 2015)
Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ oracledb.getConnection(
86
86
}
87
87
} ) ;
88
88
} ) ;
89
+ lob . on ( 'close' ,
90
+ function ( chunk )
91
+ {
92
+ console . log ( "lob.on 'close' event" ) ;
93
+ } ) ;
89
94
lob . on ( 'error' ,
90
95
function ( err )
91
96
{
Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ oracledb.getConnection(
81
81
}
82
82
} ) ;
83
83
} ) ;
84
+ lob . on ( 'close' ,
85
+ function ( chunk )
86
+ {
87
+ console . log ( "lob.on 'close' event" ) ;
88
+ } ) ;
84
89
lob . on ( 'error' ,
85
90
function ( err )
86
91
{
Original file line number Diff line number Diff line change @@ -66,10 +66,12 @@ Lob.prototype._read = function()
66
66
self . emit ( 'error' , err ) ;
67
67
return ;
68
68
}
69
+ self . push ( str ) ;
69
70
if ( ! str ) {
70
- self . close ( ) ;
71
+ process . nextTick ( function ( ) {
72
+ self . close ( ) ;
73
+ } ) ;
71
74
}
72
- self . push ( str ) ;
73
75
} ) ;
74
76
}
75
77
You can’t perform that action at this time.
0 commit comments