[odb-users] Executing native selects for no mapped type
Boris Kolpackov
boris at codesynthesis.com
Thu Sep 22 08:07:41 EDT 2011
Hi Roland,
Roland Kloeters <roland.kloeters at xcom.de> writes:
> I would prefer to use
>
> #pragma db view query("SELECT nextval('sequence')")
> struct sequence_value
> {
> unsigned long long value;
> };
>
> result r (db->query<sequence_value> ());
>
> Unfortunately my ODB Compiler is not willing to know the pragma "view".
The 1.6.0.a2 pre-release that I just announced[1] adds support for views
and the above code should compile and work as is.
[1] http://www.codesynthesis.com/pipermail/odb-users/2011-September/000304.html
Boris
More information about the odb-users
mailing list