On Jan 7, 3:18 pm, Cliff Wells <[EMAIL PROTECTED]> wrote:
> alter sequence city_id_seq restart 1;You can also use "select setval ( 'city_id_seq', 1 )" which might be easier to map from an ORM.
That's very interesting. Without a "from tablename" in the query, I don't know how I could map that operation to an object, because I don't know what the object would be. It would be nice to be able to do something like: model.City.id.reset_sequence() I would need to make sure the SQLObject can infer which sequence to reset. Any ideas there? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

