On Jun 2, 2014, at 1:17 PM, Scott Koranda <skora...@gmail.com> wrote:

> 
> I investigated and found that the sequence seq_admin_groups_id
> was now at the value 68 after having been used previously to
> insert rows with IDs in the 500s.
> 
> I stopped the code and used sqlplus to change the sequence
> back to a value in the high 500s. I then restarted the code
> and the exception no longer occurred.
> 
> I am unable to explain how the sequence seq_admin_groups_id
> went from in the 500s and working fine to suddenly being 68.
> 
> The only place in the Python code where the sequence is used
> explicitly is in the definition of the AdminGroup() class.
> 
> I would be grateful for any insights on how the sequence might
> have become out of sync or anything I can change in the code
> to prevent it from happening again.

there's nothing on the Python library side that could do that, someone had to 
have run an ALTER SEQUENCE on the database side in order for that to happen.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to