File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## node-oracledb v1.2.0 (DD Mon YYYY)
4
4
5
+ - Fixed a crash when selecting multiple rows with LOB values.
6
+
5
7
- Added a check to return an NJS error when an invalid DML RETURN statement
6
8
does not give an ORA error.
7
9
Original file line number Diff line number Diff line change @@ -434,6 +434,24 @@ void ResultSet::Async_GetRows(uv_work_t *req)
434
434
njsRS->fetchRowCount_ = getRowsBaton->numRows ;
435
435
njsRS->defineBuffers_ = ebaton->defines ;
436
436
}
437
+ else
438
+ {
439
+ for (unsigned int col = 0 ; col < njsRS->numCols_ ; col++)
440
+ {
441
+ switch (njsRS->meta_ [col].dbType )
442
+ {
443
+ case dpi::DpiClob:
444
+ case dpi::DpiBlob:
445
+ case dpi::DpiBfile:
446
+ for (unsigned int j = 0 ; j < ebaton->maxRows ; j++)
447
+ {
448
+ ((Descriptor **)(njsRS->defineBuffers_ [col].buf ))[j] =
449
+ ebaton->dpienv ->allocDescriptor (LobDescriptorType);
450
+ }
451
+ break ;
452
+ }
453
+ }
454
+ }
437
455
ebaton->defines = njsRS->defineBuffers_ ;
438
456
Connection::DoFetch (ebaton);
439
457
You can’t perform that action at this time.
0 commit comments