[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-1141) informix Dialect bug

Diego Pires Plentz (JIRA) noreply at atlassian.com
Wed Aug 15 13:50:13 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Diego Pires Plentz resolved HHH-1141.
-------------------------------------

      Assignee: Diego Pires Plentz
    Resolution: Duplicate

> informix Dialect bug
> --------------------
>
>                 Key: HHH-1141
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1141
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: metamodel
>    Affects Versions: 3.1 rc 1
>         Environment: Informix Dynamic Server Version 10.0, Informix JDBC
> driver version 3.0 
>            Reporter: ls
>            Assignee: Diego Pires Plentz
>
> informix Database no support double data type   
>  public InformixDialect() {
>         super();
>         registerColumnType(Types.BIGINT, "int8");
>         registerColumnType(Types.BINARY, "byte");
>         registerColumnType(Types.BIT, "smallint"); // Informix doesn't have a
>                                                     // bit type
>         registerColumnType(Types.CHAR, "char($l)");
>         registerColumnType(Types.DATE, "date");
>         registerColumnType(Types.DECIMAL, "decimal");
>         // registerColumnType(Types.DOUBLE, "double");   -----  error 
>   -----> registerColumnType(Types.DOUBLE, "float")  or  registerColumnType(Types.DOUBLE, "double precision")   --- right ;
>                
>         registerColumnType(Types.FLOAT, "float");
>         registerColumnType(Types.INTEGER, "integer");
>         registerColumnType(Types.LONGVARBINARY, "blob"); // or BYTE
>         registerColumnType(Types.LONGVARCHAR, "clob"); // or TEXT?
>         registerColumnType(Types.NUMERIC, "decimal"); // or MONEY
>         registerColumnType(Types.REAL, "smallfloat");
>         registerColumnType(Types.SMALLINT, "smallint");
>         registerColumnType(Types.TIMESTAMP, "datetime year to fraction(5)");
>         registerColumnType(Types.TIME, "datetime hour to second");
>         registerColumnType(Types.TINYINT, "smallint");
>         registerColumnType(Types.VARBINARY, "byte");
>         registerColumnType(Types.VARCHAR, "varchar($l)");
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list