summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi/NdbOperationInt.cpp
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-05-26 13:24:14 +0200
committerunknown <joreland@mysql.com>2004-05-26 13:24:14 +0200
commit66011d0b8cdd36013b07734b90192b0d6c630fd8 (patch)
tree0280375c810eb97bcc0397cfd3872e453d350683 /ndb/src/ndbapi/NdbOperationInt.cpp
parentd887ce18a45e2211dd9c81e04e0b40cf071da386 (diff)
downloadmariadb-git-66011d0b8cdd36013b07734b90192b0d6c630fd8.tar.gz
wl1671 - Sorted scan
Diffstat (limited to 'ndb/src/ndbapi/NdbOperationInt.cpp')
-rw-r--r--ndb/src/ndbapi/NdbOperationInt.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/NdbOperationInt.cpp b/ndb/src/ndbapi/NdbOperationInt.cpp
index be23a1c274c..dda4eded59c 100644
--- a/ndb/src/ndbapi/NdbOperationInt.cpp
+++ b/ndb/src/ndbapi/NdbOperationInt.cpp
@@ -34,6 +34,7 @@ Adjust: 991029 UABRONM First version.
#include "AttrType.hpp"
#include "NdbUtil.hpp"
#include "Interpreter.hpp"
+#include <NdbScanOperation.hpp>
#ifdef VM_TRACE
#include <NdbEnv.h>
@@ -44,6 +45,31 @@ Adjust: 991029 UABRONM First version.
#define INT_DEBUG(x)
#endif
+void
+NdbOperation::initInterpreter(){
+ theFirstLabel = NULL;
+ theLastLabel = NULL;
+ theFirstBranch = NULL;
+ theLastBranch = NULL;
+
+ theFirstCall = NULL;
+ theLastCall = NULL;
+ theFirstSubroutine = NULL;
+ theLastSubroutine = NULL;
+
+ theNoOfLabels = 0;
+ theNoOfSubroutines = 0;
+
+ theSubroutineSize = 0;
+ theInitialReadSize = 0;
+ theInterpretedSize = 0;
+ theFinalUpdateSize = 0;
+ theFinalReadSize = 0;
+ theInterpretIndicator = 1;
+
+ theTotalCurrAI_Len = 5;
+}
+
int
NdbOperation::incCheck(const NdbColumnImpl* tNdbColumnImpl)
{
@@ -192,7 +218,7 @@ NdbOperation::initial_interpreterCheck()
{
if ((theInterpretIndicator == 1)) {
if (theStatus == SetBound) {
- saveBoundATTRINFO();
+ ((NdbScanOperation*)this)->saveBoundATTRINFO();
theStatus = GetValue;
}
if (theStatus == ExecInterpretedValue) {