get double by its name instead of position
Brought to you by:
skuchin
Hi,
There is no interface to get a double
by its name instead of its position in the
"recordset".
Is it to possible to have something like
#if defined(OTL_STL)
void get(const char* var_name, double& n)
{
var_name2pos_map_type::iterator
it=var_name2pos_map_.find(var_name);
check_name(it,var_name);
get((*it).second+1,n);
}
#endif
to get doubles with their column name?
Is this code correct to run properly?
Best regards,
Antonio.