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

  Modified:    src/java/org/apache/ojb/broker/platforms Tag: OJB_BRANCH_1_0
                        PlatformMySQLImpl.java
  Log:
  OJB232: fixed wrong SQL
  fix by: Andreas Schildbach
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.2   +3 -4      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.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- PlatformMySQLImpl.java	19 Dec 2003 22:30:15 -0000	1.7.2.1
  +++ PlatformMySQLImpl.java	30 Dec 2003 21:16:33 -0000	1.7.2.2
  @@ -58,8 +58,7 @@
    */
   public class PlatformMySQLImpl extends PlatformDefaultImpl
   {
  -    private static final String LAST_INSERT = "SELECT LAST_INSERT_ID() ";
  -    private static final String LIMIT = " LIMIT 1";
  +    private static final String LAST_INSERT = "SELECT LAST_INSERT_ID() FROM ";
   
       /*
   	 * @see Platform#setObjectForStatement(PreparedStatement, int, Object, int)
  @@ -125,7 +124,7 @@
   
       public String getLastInsertIdentityQuery(String tableName)
       {
  -        return LAST_INSERT + tableName + LIMIT;
  +        return LAST_INSERT + tableName;
       }
   
       /*
  
  
  

---------------------------------------------------------------------
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