22 lines
551 B
C++
22 lines
551 B
C++
#include "__whilerow.h"
|
|
#include "Exception.h"
|
|
#include "__mysql.h"
|
|
#include <iostream>
|
|
|
|
namespace jet {
|
|
|
|
__whilerow::__whilerow(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent) : Tag(in, parentOut, global, parent) {
|
|
|
|
int count = variables["count"].asInteger();
|
|
|
|
while ((count != 0) && global.getSession(variables["sessionid"])->hasRow()) {
|
|
processContainer(container);
|
|
container.reset();
|
|
global.getSession(variables["sessionid"])->nextRow();
|
|
--count;
|
|
}
|
|
|
|
}
|
|
|
|
}
|