sql variables work now.
This commit is contained in:
1 parent
e655173a8f
commit
9977ca188c
7 files changed
+14
-9
No files matched your search
+8
-1
@@ -53,7 +53,14 @@ namespace jet {
|
||||
coreutils::ZString __mysql::getColumnValue(coreutils::ZString column) {
|
||||
if(column == "#")
|
||||
return NbrOfRows;
|
||||
return NbrOfRows;
|
||||
MYSQL_FIELD *field;
|
||||
for(int ix = 0; ix < qFields; ++ix) {
|
||||
field = mysql_fetch_field_direct(result, ix);
|
||||
if(column.equals((char *)field->name)) {
|
||||
return coreutils::ZString(row[ix], fieldLength[ix]);
|
||||
}
|
||||
}
|
||||
throw coreutils::Exception("column does not exist in session result.");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user