[odb-users] Native SQL Query

Mike Ruffing mike.ruffing at ipconfigure.com
Tue Nov 19 13:38:54 EST 2013


Boris,

I'm trying to compile (VS2012) the following code (copied from the ODB Manual Section 4, ODB 2.3.0)

query q ("first = 'John' AND age = " + query::_ref (age));

I'm getting the following compiler error:

error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const char [26]'

Is there an ODB compiler option I'm missing/including?  I do have the -generate-query option set.

Thanks,
Mike


More information about the odb-users mailing list