fixed mysql tag to give values for ?# # and field name using #n.
This commit is contained in:
1 parent
6d2da98024
commit
ae57e06778
5 files changed
+33
-13
No files matched your search
+2
-6
@@ -24,13 +24,9 @@ namespace jet {
|
||||
}
|
||||
|
||||
void Global::addSession(coreutils::MString sessionId, __mysql *mysql) {
|
||||
std::cout << "sessionId: " << sessionId << std::endl;
|
||||
if(sessionExists(sessionId))
|
||||
coreutils::Exception("sessionid already exists.");
|
||||
sessions[sessionId] = mysql;
|
||||
|
||||
std::cout << "::count: " << sessions.size() << std::endl;
|
||||
std::cout << "::" << sessionId << std::endl;
|
||||
}
|
||||
|
||||
void Global::removeSession(coreutils::MString sessionId) {
|
||||
@@ -101,7 +97,7 @@ namespace jet {
|
||||
|
||||
void Global::renderVariableName(coreutils::ZString &variable, coreutils::MString &name, coreutils::MString &modifier, std::map<coreutils::MString, coreutils::MString> &lvariables) {
|
||||
while(!variable.ifNext("]")) {
|
||||
name << variable.getTokenInclude("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-");
|
||||
name << variable.getTokenInclude("#?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-");
|
||||
if(variable.ifNext(";")) {
|
||||
renderVariableName(variable, modifier, modifier, lvariables);
|
||||
return;
|
||||
@@ -111,7 +107,7 @@ namespace jet {
|
||||
name << getVariable(variable, lvariables);
|
||||
else if(variable.ifNext("]"))
|
||||
return;
|
||||
else if(!variable.ifNextInclude("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-"))
|
||||
else if(!variable.ifNextInclude("#?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-"))
|
||||
throw coreutils::Exception("invalid variable name.");
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user