db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: db-torque/src/generator/src/test/org/apache/torque/engine/database/model DomainTest.java
Date Fri, 12 Mar 2004 12:25:32 GMT
seade       2004/03/12 04:25:32

  Modified:    src/generator/src/test/org/apache/torque/engine/database/model
                        DomainTest.java
  Log:
  The domain tests have been updated to the correct column type for MySQL autoincrement columns.
  Thanks to Kostyantyn Shchekotykhin for the patch.
  
  Revision  Changes    Path
  1.11      +3 -4      db-torque/src/generator/src/test/org/apache/torque/engine/database/model/DomainTest.java
  
  Index: DomainTest.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/test/org/apache/torque/engine/database/model/DomainTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DomainTest.java	22 Feb 2004 06:29:38 -0000	1.10
  +++ DomainTest.java	12 Mar 2004 12:25:32 -0000	1.11
  @@ -23,7 +23,6 @@
   /**
    * Tests for domain handling (for MySql).
    *
  - * @author <a href="mailto:mpoeschl@marmot.at>Martin Poeschl</a>
    * @version $Id$
    */
   public class DomainTest extends TestCase
  @@ -132,7 +131,7 @@
           Table table = db.getTable("native");
           Column col = table.getColumn("native_id");
           assertEquals("AUTO_INCREMENT", col.getAutoIncrementString());
  -        assertEquals("native_id INTEGER NOT NULL AUTO_INCREMENT", col.getSqlString());
  +        assertEquals("native_id MEDIUMINT NOT NULL AUTO_INCREMENT", col.getSqlString());
           col = table.getColumn("name");
           assertEquals("", col.getAutoIncrementString());
       }    
  @@ -142,7 +141,7 @@
           Table table = db.getTable("article");
           Column col = table.getColumn("article_id");
           assertEquals("", col.getAutoIncrementString());
  -        assertEquals("article_id INTEGER NOT NULL ", col.getSqlString());
  +        assertEquals("article_id MEDIUMINT NOT NULL ", col.getSqlString());
           col = table.getColumn("name");
           assertEquals("", col.getAutoIncrementString());
       }    
  
  
  

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


Mime
View raw message