// file : odb/mssql/query-dynamic.ixx // license : ODB NCUEL; see accompanying LICENSE file namespace odb { namespace mssql { // // template inline query_column:: query_column (odb::query_column& qc, const char* table, const char* column, const char* conv, unsigned short prec, unsigned short scale) : query_column_base (table, column, conv, prec, scale) { native_column_info& ci (qc.native_info[id_mssql]); ci.column = static_cast (this); // For some reason GCC needs this statically-typed pointer in // order to instantiate the functions. // query_param_factory f (&query_param_factory_impl); ci.param_factory = reinterpret_cast (f); } } }