[odb-users] Querying entity's container
Adnan RIHAN
axel50397 at gmail.com
Thu Mar 26 11:03:19 EDT 2015
Hi Boris,
On 26 mars 2015 at 15:12:42, Boris Kolpackov (boris at codesynthesis.com(mailto:boris at codesynthesis.com)) wrote:
> Could you try it and let me know if there are any issues?
Almost good (now it’s in database.hxx):
In file included from /usr/local/include/odb/database.hxx:631:
/usr/local/include/odb/database.ixx:837:12: error: no viable conversion from 'pointer_type' (aka 'QSharedPointer< ::offer_view>') to 'typename object_traits<offer_view>::pointer_type' (aka 'offer_view *')
return r.one ();
^~~~~~~~
/usr/local/include/odb/database.ixx:647:12: note: in instantiation of function template specialization 'odb::database::query_one_<offer_view, 5, odb::query<offer_view, odb::sqlite::query_base> >' requested here
return query_one_<T, id_common> (q);
^
/Users/Max13/Dev/System/LGC/Desktop/apps/LGC/src/Controllers/EntityManager/EntityManager.hpp:247:39: note: in instantiation of function template specialization 'odb::database::query_one<offer_view>' requested here
one.reset(this->m_db->query_one<T>(query));
^
/Users/Max13/Dev/System/LGC/Desktop/apps/LGC/src/CashRegister/CashRegisterWidget.cpp:162:42: note: in instantiation of function template specialization 'EntityManager::findOne2<offer_view>' requested here
ov = MasterController::inst()->em()->findOne2<offer_view>(
^
--
Cordialement, Adnan RIHAN.
Directeur-Gérant de Eolis-Software, société de services informatiques.
GPG: 5675-62BA (https://keybase.io/max13/key.asc)
-> Si vous n'utilisez pas GPG mais souhaitez quand même m’envoyer un e-mail chiffré: (https://encrypt.to/0x567562BA).
More information about the odb-users
mailing list