You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by dl...@apache.org on 2004/01/27 02:09:55 UTC

cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/platform PlatformMysqlImpl.java

dlr         2004/01/26 17:09:55

  Modified:    src/generator/src/java/org/apache/torque/engine/platform
                        PlatformMysqlImpl.java
  Log:
  * src/generator/src/java/org/apache/torque/engine/platform/PlatformMysqlImpl.java
    initialize(): Map MySQL's "mediumint" type to SchemaType.INTEGER.
    Common applications like Bugzilla use this data type (e.g. the
    "userid" field is of type "mediumint(9)").
  
  Revision  Changes    Path
  1.5       +2 -1      db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformMysqlImpl.java
  
  Index: PlatformMysqlImpl.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformMysqlImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -u -r1.4 -r1.5
  --- PlatformMysqlImpl.java	17 Jan 2004 01:51:33 -0000	1.4
  +++ PlatformMysqlImpl.java	27 Jan 2004 01:09:55 -0000	1.5
  @@ -80,6 +80,7 @@
       private void initialize()
       {
           setSchemaDomainMapping(new Domain(SchemaType.NUMERIC, "DECIMAL"));
  +        setSchemaDomainMapping(new Domain(SchemaType.INTEGER, "MEDIUMINT"));
           setSchemaDomainMapping(new Domain(SchemaType.LONGVARCHAR, "MEDIUMTEXT"));
           setSchemaDomainMapping(new Domain(SchemaType.DATE, "DATETIME"));
           setSchemaDomainMapping(new Domain(SchemaType.BINARY, "BLOB"));
  
  
  

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