db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: db-torque/xdocs changes.xml
Date Sat, 16 Oct 2004 12:59:53 GMT
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 @@
     </properties>
   
     <body>
  +  <release version="3.1.1" date="in CVS">
  +    <action type="update" dev="henning">
  +      Change PostgreSQL ID generation to use <code>select nextval</code>
  +      instead of <code>select currval</code>.
  +    </action>
  +  </release>
     <release version="3.1.1-RC3" date="2004-10-16">
       <action type="update" dev="henning">
         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


Mime
View raw message