[odb-users] query_one on postgres
dpbowe at hotmail.com
Fri Feb 3 06:35:37 EST 2017
I found this question posted on the users group about a year ago:
I am receiving a similar error when I run query_one:
driver: /usr/include/odb/result.txx:20: typename odb::object_traits<T>::pointer_type odb::result<T>::one() [with T = restaurants; typename odb::object_traits<T>::pointer_type = restaurants*]: Assertion `++i == end ()' failed.
Could you please advise me on the issue?
Also, since I'm already asking, with the #pragma db id auto unsigned long id_;
Should this automatically create public accessor functions or have I misinterpreted the docs?
From: Boris Kolpackov <boris at codesynthesis.com>
Sent: 03 February 2017 08:51
To: david bowe
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] query_one on postgres
david bowe <dpbowe at hotmail.com> writes:
> I'm using Postgres (9.2.18) with odb (2.3.0), but the compiler is
> telling me that odb::database has no member query_one.
That's because query_one() was added in ODB 2.4.0. See the NEWS file
in the ODB compiler package for details.
More information about the odb-users