[sqlalchemy] Re: non-autoincrementing, but DB-assigned primary keys

2007-02-23 Thread Sean Davis
On Friday 23 February 2007 10:52, Michael Bayer wrote: > PassiveDefault is used for this. Thanks. Works perfectly. > On Feb 23, 2007, at 6:35 AM, Sean Davis wrote: > > If I have a table that generates primary keys like this (in postgres): > > > > create table ...( > > pk varchar default ('pk-

[sqlalchemy] Re: non-autoincrementing, but DB-assigned primary keys

2007-02-23 Thread Michael Bayer
PassiveDefault is used for this. On Feb 23, 2007, at 6:35 AM, Sean Davis wrote: > If I have a table that generates primary keys like this (in postgres): > > create table ...( > pk varchar default ('pk-'||nextval('table_seq'::regclass)::varchar), > ..., > primary key(pk) > ); > > on the dat