Which database backend do you use and what does the table definition look
like in that backend?

Regards
Johann

On 23 November 2015 at 04:58, Mark Graves <mgrave...@gmail.com> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to