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:40:10 GMT
brj         2003/12/30 13:40:10

  Modified:    src/java/org/apache/ojb/broker/platforms Tag: OJB_BRANCH_1_0
                        PlatformMySQLImpl.java
  Log:
  added LIMIT 1
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.3   +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.7.2.2
  retrieving revision 1.7.2.3
  diff -u -r1.7.2.2 -r1.7.2.3
  --- PlatformMySQLImpl.java	30 Dec 2003 21:16:33 -0000	1.7.2.2
  +++ PlatformMySQLImpl.java	30 Dec 2003 21:40:10 -0000	1.7.2.3
  @@ -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