[odb-users] odb value Type
Boris Kolpackov
boris at codesynthesis.com
Thu Jun 25 07:48:38 EDT 2015
Hi,
In the future, please start a new email rather than replying to
an existing email (even though you have changed the subject,
the In-Reply-To: header still links it to the original email).
qgjie <qgjie at 163.com> writes:
> bool nurse::setUnfilledOrderStatus(nurse_type p, long appid, int s)
> {
> unfilledOrder u;
> set<unfilledOrder>::iterator it;
> for(it = orders.begin(); it != orders.end(); ++it)
> {
> if(it->getAppointId() == appid)
> {
> u = (*it);
> orders.erase(it);
> u.setStatus(s);
> orders.insert(u);
> odb::core::transaction t (getDatabase()->begin ());
> try {
> update(p);
I don't know what 'nurse_type' or 'p' is, but shouldn't you be
updating what you have modified:
update(*this);
Boris
More information about the odb-users
mailing list