On Thu, 5 Mar 2009 12:16:32 +0100
Gaetan de Menten <[email protected]> wrote:

> 
> At first glance your code seems ok. I fear you are simply using bad
> data (ie trying to remove a relation which doesn't exist). The problem
> *might* come from session.flush()...  Are you using an autocommit
> session? Try to turn on echo on your engine to see what happens behind
> the scene.
> 
> Probably unrelated, but I wonder what u.update() is.
> 

I think to have find the problem. Naturally the problem is my code.
The first block that check data['newRight'] remove from u.admin the
relation that after the data['removedRight'] block tryes to remove
again!!

Thanks for your answer.

-- 
-------------------------------------------------------------------
       (o_
(o_    //\  Coltivate Linux che tanto Windows si pianta da solo.
(/)_   V_/_
+------------------------------------------------------------------+
|     ENRICO MORELLI         |  email: [email protected]       |
| *     *       *       *    |  phone: +39 055 4574269             |
|  University of Florence    |  fax  : +39 055 4574253             |
|  CERM - via Sacconi, 6 -  50019 Sesto Fiorentino (FI) - ITALY    |
+------------------------------------------------------------------+

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to