Work on mysql and sql.
This commit is contained in:
1 parent
2e715a4d08
commit
387203f4b3
7 files changed
+42
-16
No files matched your search
@@ -10,12 +10,15 @@
|
||||
namespace jet {
|
||||
|
||||
__sql::__sql(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
|
||||
output = false;
|
||||
if(!hasContainer)
|
||||
throw coreutils::Exception("sql tag must have a container.");
|
||||
if(!global.sessionExists(variables["sessionid"]))
|
||||
coreutils::Exception("sessionid does not exist.");
|
||||
|
||||
global.sessions[variables["sessionid"]]->query(container);
|
||||
throw coreutils::Exception("sessionid does not exist.");
|
||||
std::cout << "cont: " << container << std::endl;
|
||||
processContainer(container);
|
||||
std::cout << "out: " << out << std::endl;
|
||||
global.getSession(variables["sessionid"])->query(out);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user