[odb-users] Native SQL Query
Boris Kolpackov
boris at codesynthesis.com
Tue Nov 19 14:35:25 EST 2013
Hi Mike,
Mike Ruffing <mike.ruffing at ipconfigure.com> writes:
> query q ("first = 'John' AND age = " + query::_ref (age));
>
> error C2678: binary '+' : no operator found which takes a left-hand
> operand of type 'const char [26]'
We have pretty much the same line in one of the tests and it compiles
fine. What is the 'query' type? You should have something like this
before the above line:
typedef odb::query<my_object> query;
Boris
More information about the odb-users
mailing list