Some evil happended, and truncate() has stopped working properly in editor: 
doesn't reset the counter id, as did before, but only for one of my tables.

def cleaning_db():
>     db.table1.truncate()
>     db.table2.truncate()
>
> def myAction(): 
>      cleaning_db()
>      db.table1.insert(car='chev')
>      db.table2.insert(car='chev')
>      return len(db().select(db.table1.ALL)==len(db().select(db.table2.ALL)
>


myAction returns False

Counter id is at position 1 for table2. For table1 is at position 3892 (and 
counting...)

I was programming from editor in localhost, filling tables using the insert 
and update methods, nothing complex. So I'm very surprised. How could it 
be? How can I prevent this to happen?

Reply via email to