some sql classes refactorings like column and table structs to classes
This commit is contained in:
@@ -67,14 +67,14 @@ const std::vector<record::field_ref> &record::columns() const
|
||||
// return columns_[pk_index_];
|
||||
//}
|
||||
|
||||
const field &record::at(const column &col) const
|
||||
const field &record::at(const sql::column &col) const
|
||||
{
|
||||
const auto &res = fields_by_name_.at(col.name);
|
||||
const auto &res = fields_by_name_.at(col.column_name());
|
||||
const auto &f = res.first;
|
||||
return f;
|
||||
}
|
||||
|
||||
const field &record::at(size_t index) const
|
||||
const field &record::at(const size_t index) const
|
||||
{
|
||||
return fields_.at(index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user