cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject OJB + postgresql + "autoincrement"
Date Tue, 20 Jul 2004 14:50:50 GMT
Hi,

now that I got working the receiving point and inserting sort works.. 
but how do I use autoincrement thing in postgres? (using cocoon in 
connection pooling).

inserting when id is not set, inserts 0 as id. which of course causes 
error.

I tried to look that ojb example from wiki, but it didn't use cocoon 
connection pool. Example file in cocoon source didn't have any 
autoincrement in it.

Postgresql table is like this:
create table category ( id serial, parent integer );

Thanks, Joose

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message