On Sunday, December 30, 2012 2:33:42 PM UTC+1, Wonton wrote:
>
> But it's strange. I have all this code inside my default.py controller, 
> inside web2py. 
> Indeen, these 2 lines:
> query = db(db.table.field1=='What I am looking for')
> query.update(field2='hello')   
> work perfectly even without the db.commit().
>
>  
Ok
 

> But, this code:
> query = db(db.table.field1=='What I am looking for')
> deletedRow = query.delete()
> is not working if I don't use the db.commit() instruction. I mean, it 
> seems that the deletion is ok, it doesn't crash and doesn't return any 
> error, but the database is not modified.
>
>
Please post your model and the controller as attachments (or the app if you 
can), because that has to work (and indeed works fine in a fresh app).  

-- 



Reply via email to