Working on whilerow.
This commit is contained in:
1 parent
9977ca188c
commit
a09e370e57
3 files changed
+55
-1
No files matched your search
@@ -0,0 +1,33 @@
|
||||
#include "__whilerow.h"
|
||||
#include "Exception.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace jet {
|
||||
|
||||
__whilerow::__whilerow(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) {
|
||||
|
||||
if(!variableDefined("host"))
|
||||
throw coreutils::Exception("host must be specified for mysql tag.");
|
||||
if(!variableDefined("database"))
|
||||
throw coreutils::Exception("database must be specified for mysql tag.");
|
||||
if(!variableDefined("user"))
|
||||
throw coreutils::Exception("user must be specified for mysql tag.");
|
||||
if(!variableDefined("password"))
|
||||
throw coreutils::Exception("password must be specified for mysql tag.");
|
||||
|
||||
while ((count != 0) && sql[sqlsession].row) {
|
||||
processContainer(container);
|
||||
|
||||
sql[sqlsession].row = mysql_fetch_row (sql[sqlsession].result);
|
||||
sql[sqlsession].fieldlen = mysql_fetch_lengths (sql[sqlsession].result);
|
||||
|
||||
--count;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user