You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by mp...@apache.org on 2003/06/05 10:58:09 UTC

cvs commit: db-torque/src/java/org/apache/torque/adapter DBPostgres.java DB.java

mpoeschl    2003/06/05 01:58:09

  Modified:    src/java/org/apache/torque/adapter Tag: TORQUE_3_0_BRANCH
                        DBPostgres.java DB.java
  Log:
  cleanup
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.13.2.1  +4 -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.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- DBPostgres.java	19 Sep 2002 07:54:37 -0000	1.13
  +++ DBPostgres.java	5 Jun 2003 08:58:09 -0000	1.13.2.1
  @@ -3,7 +3,7 @@
   /* ====================================================================
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -123,10 +123,11 @@
        * return null.
        *
        * @see org.apache.torque.adapters.DB#getSequenceSql
  +     * @deprecated Use getIDMethodSQL(Object) instead.
        */
       public String getSequenceSql(Object obj)
       {
  -        return "SELECT nextval('" + (String) obj + "')";
  +        return getIDMethodSQL(obj);
       }
   
       /**
  
  
  
  1.28.2.1  +3 -3      db-torque/src/java/org/apache/torque/adapter/DB.java
  
  Index: DB.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/adapter/DB.java,v
  retrieving revision 1.28
  retrieving revision 1.28.2.1
  diff -u -r1.28 -r1.28.2.1
  --- DB.java	24 Jun 2002 18:12:19 -0000	1.28
  +++ DB.java	5 Jun 2003 08:58:09 -0000	1.28.2.1
  @@ -254,7 +254,7 @@
       }
   
       /**
  -     * This method is used to chek whether the database natively
  +     * This method is used to check whether the database natively
        * supports returning results starting at an offset position other
        * than 0.
        *
  @@ -280,7 +280,7 @@
       }
   
       /**
  -     * This method is used to chek whether the database supports
  +     * This method is used to check whether the database supports
        * limiting the size of the resultset.
        *
        * @return The limit style for the database.