primary key identifiers are acquired using database-specific methods,  
such as AUTOINCREMENT on mysql, SERIAL on postgres, SQLites implicit  
OID behavior.   these methods all start at 1.   you can explicitly set  
the primary key attributes on a pending object to 0 and flush to force  
a zero.

On Feb 1, 2009, at 7:24 AM, vctr...@gmail.com wrote:

>
> The ID field in a declarative base is a sequence that is not controled
> by the user (or is it?).
>
> Is there a way to get it to start the counting of the ID from 0 and
> not from 1?
>
> Thanks
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to