Skip to content

Commit e93edad

Browse files
authored
Merge pull request #724 from datagraph/24.10-main
NdbScanOperation::scanImpl(): call handleInterpreterOptions(options) only when options not null
2 parents cbef084 + 7a7c747 commit e93edad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

storage/ndb/src/ndbapi/NdbScanOperation.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,10 @@ inline int NdbScanOperation::scanImpl(
517517
* since the interpreter depends on input parameters being added before
518518
* packed read instructions.
519519
*/
520-
if (handleInterpreterOptions(options) != 0) {
521-
return -1;
520+
if (options != nullptr) {
521+
if (handleInterpreterOptions(options) != 0) {
522+
return -1;
523+
}
522524
}
523525

524526
/* Add AttrInfos for packed read of cols in result_record */

0 commit comments

Comments
 (0)