diff --git a/Global.cpp b/Global.cpp
index 98b2351..ec1994a 100644
--- a/Global.cpp
+++ b/Global.cpp
@@ -50,6 +50,7 @@ namespace jet {
splitName.split(".");
if(splitName.getList().size() == 1)
return variables[splitName[0]];
+ std::cout << "session var: " << splitName << std::endl;
return getSessionVariable(splitName);
}
throw coreutils::Exception("expected variable name or type designator.");
@@ -75,8 +76,6 @@ namespace jet {
}
__mysql * Global::getSession(coreutils::MString sessionId) {
- std::cout << "sessionId: " << sessionId << std::endl;
- std::cout << "count: " << sessions.size() << std::endl;
if(sessions.find(sessionId) == sessions.end())
throw coreutils::Exception("requested session is not available.");
return sessions[sessionId];
diff --git a/__whilerow.cpp b/__whilerow.cpp
index be9bb9b..251cb74 100644
--- a/__whilerow.cpp
+++ b/__whilerow.cpp
@@ -11,6 +11,7 @@ namespace jet {
while ((count != 0) && global.getSession(variables["sessionid"])->hasRow()) {
processContainer(container);
+ container.reset();
global.getSession(variables["sessionid"])->nextRow();
--count;
}
diff --git a/jet-2.0 b/jet-2.0
index 2bd3c6a..f7575ac 100755
Binary files a/jet-2.0 and b/jet-2.0 differ
diff --git a/testjet.jet b/testjet.jet
index f45ab0c..e2a374f 100755
--- a/testjet.jet
+++ b/testjet.jet
@@ -4,14 +4,12 @@
This is a comment and should not show up in the output.
$[nonexistant]
-
select * from testdata
$[1.id] $[1.text] $[1.value]
-