Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 62076 invoked from network); 16 Oct 2004 12:59:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Oct 2004 12:59:56 -0000 Received: (qmail 35511 invoked by uid 500); 16 Oct 2004 12:59:56 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 35319 invoked by uid 500); 16 Oct 2004 12:59:55 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 35303 invoked by uid 500); 16 Oct 2004 12:59:54 -0000 Received: (qmail 35299 invoked by uid 99); 16 Oct 2004 12:59:54 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 16 Oct 2004 05:59:54 -0700 Received: (qmail 62066 invoked by uid 1332); 16 Oct 2004 12:59:53 -0000 Date: 16 Oct 2004 12:59:53 -0000 Message-ID: <20041016125953.62065.qmail@minotaur.apache.org> From: henning@apache.org To: db-torque-cvs@apache.org Subject: cvs commit: db-torque/xdocs changes.xml X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N henning 2004/10/16 05:59:53 Modified: src/java/org/apache/torque/adapter Tag: TORQUE_3_1_BRANCH DBPostgres.java xdocs Tag: TORQUE_3_1_BRANCH changes.xml Log: Commit the proposed PostgreSQL 'native' ID generation patch. Revision Changes Path No revision No revision 1.16.2.4 +3 -3 db-torque/src/java/org/apache/torque/adapter/DBPostgres.java Index: DBPostgres.java =================================================================== RCS file: /home/cvs/db-torque/src/java/org/apache/torque/adapter/DBPostgres.java,v retrieving revision 1.16.2.3 retrieving revision 1.16.2.4 diff -u -r1.16.2.3 -r1.16.2.4 --- DBPostgres.java 6 Sep 2004 11:20:12 -0000 1.16.2.3 +++ DBPostgres.java 16 Oct 2004 12:59:53 -0000 1.16.2.4 @@ -75,7 +75,7 @@ */ public String getIDMethodType() { - return AUTO_INCREMENT; + return SEQUENCE; } /** @@ -86,7 +86,7 @@ */ public String getIDMethodSQL(Object name) { - return ("select currval('" + name + "')"); + return ("select nextval('" + name + "')"); } /** No revision No revision 1.140.2.5 +6 -0 db-torque/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/db-torque/xdocs/changes.xml,v retrieving revision 1.140.2.4 retrieving revision 1.140.2.5 diff -u -r1.140.2.4 -r1.140.2.5 --- changes.xml 16 Oct 2004 12:31:38 -0000 1.140.2.4 +++ changes.xml 16 Oct 2004 12:59:53 -0000 1.140.2.5 @@ -25,6 +25,12 @@ + + + Change PostgreSQL ID generation to use select nextval + instead of select currval. + + Add maven-generated ant-buildfiles as a courtesy to those that are --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org