Maybe fix a bug, maybe not

This commit is contained in:
Grégory Soutadé 2010-11-05 20:32:39 +01:00
parent 115bf8f305
commit bd0558a9b0

View File

@ -466,6 +466,7 @@ void Database::LinkOrUnlinkOperation(Operation& op)
{
req = wxT("UPDATE operation SET transfert='' where id='") + op.id + wxT("'") ;
EXECUTE_SQL_UPDATE(req, );
op.transfert = wxT("");
return;
}
}
@ -488,7 +489,6 @@ void Database::LinkOrUnlinkOperation(Operation& op)
req += wxT(" AND amount='") + DoubleToString(-op.amount) + wxT("'");
req += wxT(" AND meta='0'");
req += wxT(" AND account !='") + op.account + wxT("'");
req += wxT(" AND id !='") + op.id + wxT("'");
req += wxT(" AND (transfert='' OR transfert IS NULL)");
EXECUTE_SQL_QUERY(req, set, );