usql update
usql is still very primitive..it just barely works
This commit is contained in:
@@ -19,11 +19,11 @@ MlValue uSQL::ivaluize(const usql::Table *table) {
|
||||
auto c = row.ithColumn(i);
|
||||
auto type = table->m_col_defs[i].type;
|
||||
if (type == ColumnType::integer_type) {
|
||||
columns.push_back(MlValue((long)c->integerValue()));
|
||||
columns.push_back(MlValue(c->getIntValue()));
|
||||
} else if (type == ColumnType::float_type) {
|
||||
columns.push_back(MlValue((double)c->floatValue()));
|
||||
columns.push_back(MlValue(c->getDoubleValue()));
|
||||
} else {
|
||||
columns.push_back(MlValue::string(c->stringValue()));
|
||||
columns.push_back(MlValue::string(c->getStringValue()));
|
||||
}
|
||||
}
|
||||
rows.push_back(columns);
|
||||
|
||||
Reference in New Issue
Block a user