db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/platforms PlatformMySQLImpl.java
Date Tue, 30 Dec 2003 21:39:02 GMT
brj         2003/12/30 13:39:02

  Modified:    src/java/org/apache/ojb/broker/platforms
                        PlatformMySQLImpl.java
  Log:
  added LIMIT 1
  
  Revision  Changes    Path
  1.10      +4 -3      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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PlatformMySQLImpl.java	30 Dec 2003 21:17:51 -0000	1.9
  +++ PlatformMySQLImpl.java	30 Dec 2003 21:39:02 -0000	1.10
  @@ -59,7 +59,8 @@
   public class PlatformMySQLImpl extends PlatformDefaultImpl
   {
       private static final String LAST_INSERT = "SELECT LAST_INSERT_ID() FROM ";
  -
  +    private static final String LIMIT = " LIMIT 1";
  +    
       /*
   	 * @see Platform#setObjectForStatement(PreparedStatement, int, Object, int)
   	 */
  @@ -124,7 +125,7 @@
   
       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