What does the code look like? Are you calling db.commit() at any point? On Sunday, November 22, 2015 at 9:58:05 PM UTC-5, Mark Graves wrote: > > Are there any caveats to know about running applications in shell mode > (e.g. transactions / returning id)? > > I'm running a middleware migration script to migrate someone off an old > database to a new one. > > When I run a db.table.validate_and_insert() it keeps returning me id 1. > This is yielding a duplicate key error understandably. > > It's like pydal and postgres are coming out of sync. > > Theres only one connection to the database, but the sequence is not being > updated. > > Any thoughts? > > >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

