db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Eade <se...@backstagetech.com.au>
Subject Re: sequence related exception
Date Wed, 25 Feb 2004 12:39:17 GMT
Hassan Abolhassani wrote:

>What is wrong when an exception like below is thrown:
>
>org.apache.torque.TorqueException: ERROR:  product_id_seq.currval is not
>yet defined in this session
>	at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:236)
>	at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:780)
>
>And how it is possible to repair it?
>
You need to tell torque the correct PostgreSQL sequence name to use. See:

http://nagoya.apache.org/wiki/apachewiki.cgi?TorqueProjectPages/PostgreSQLFAQ

Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message