Fixed whilerow.
This commit is contained in:
parent
5a97da3d1c
commit
c6c0be016e
@ -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];
|
||||
|
@ -11,6 +11,7 @@ namespace jet {
|
||||
|
||||
while ((count != 0) && global.getSession(variables["sessionid"])->hasRow()) {
|
||||
processContainer(container);
|
||||
container.reset();
|
||||
global.getSession(variables["sessionid"])->nextRow();
|
||||
--count;
|
||||
}
|
||||
|
@ -4,14 +4,12 @@
|
||||
<comment>This is a comment and should not show up in the output.</comment>
|
||||
<html>
|
||||
$[nonexistant]
|
||||
<comment>
|
||||
<mysql host="localhost" database="barant" user="barant" password="uversa" sessionid="1">
|
||||
<sql sessionid="1">select * from testdata</sql>
|
||||
<whilerow name="index" count="10" sessionid="1">
|
||||
$[1.id] $[1.text] $[1.value]
|
||||
</whilerow>
|
||||
</mysql>
|
||||
</comment>
|
||||
<set name="ix" value="1" />
|
||||
<set name="theexpr" expr="SUBSTRING('abcdefg', 1, 3)" />
|
||||
<set name="theexpr2" expr="5+3" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user