db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/platforms PlatformMySQLImpl.java
Date Tue, 05 Aug 2003 11:44:12 GMT
arminw      2003/08/05 04:44:12

  Modified:    src/java/org/apache/ojb/broker/platforms
                        PlatformMySQLImpl.java
  Log:
  add patch by Shivaken
  
  Revision  Changes    Path
  1.4       +2 -1      db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformMySQLImpl.java
  
  Index: PlatformMySQLImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformMySQLImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PlatformMySQLImpl.java	9 May 2003 23:58:18 -0000	1.3
  +++ PlatformMySQLImpl.java	5 Aug 2003 11:44:12 -0000	1.4
  @@ -65,6 +65,7 @@
   public class PlatformMySQLImpl extends PlatformDefaultImpl
   {
       private static final String LAST_INSERT = "SELECT LAST_INSERT_ID() ";
  +    private static final String LIMIT = " LIMIT 1";
   
       /*
        * @see Platform#setObjectForStatement(PreparedStatement, int, Object, int)
  @@ -88,6 +89,6 @@
   
       public String getLastInsertIdentityQuery(String tableName)
       {
  -        return LAST_INSERT + tableName;
  +        return LAST_INSERT + tableName + LIMIT;
       }
   }
  
  
  

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


Mime
View raw message