You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Ted Husted (JIRA)" <ib...@incubator.apache.org> on 2006/06/21 20:16:31 UTC

[jira] Created: (IBATISNET-164) Byte (MySQL tinyint) and MySQL unsigned numeric formats not support by default TypeHandlers

Byte (MySQL tinyint) and MySQL unsigned numeric formats not support by default TypeHandlers
-------------------------------------------------------------------------------------------

         Key: IBATISNET-164
         URL: http://issues.apache.org/jira/browse/IBATISNET-164
     Project: iBatis for .NET
        Type: Improvement

    Reporter: Ted Husted
 Assigned to: Gilles Bayon 
     Fix For: DataMapper 1.3


The MySQL tinyint (one character byte) and unsigned numeric formats are not handled by the built-in handlers. 

If used, a null pointer exception is thrown in ResultMapping, line 398. 

We might want to consider supporthing these formats out of the box. 


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


[jira] Commented: (IBATISNET-164) Byte (MySQL tinyint) and MySQL unsigned numeric formats not support by default TypeHandlers

Posted by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/IBATISNET-164?page=comments#action_12417861 ] 

Gilles Bayon commented on IBATISNET-164:
----------------------------------------

The byte is already registered, perhaps there's an issue with MySQL.
I have added support for unsigned numeric Uint13, Uint32, Uint64

> Byte (MySQL tinyint) and MySQL unsigned numeric formats not support by default TypeHandlers
> -------------------------------------------------------------------------------------------
>
>          Key: IBATISNET-164
>          URL: http://issues.apache.org/jira/browse/IBATISNET-164
>      Project: iBatis for .NET
>         Type: Improvement

>     Reporter: Ted Husted
>     Assignee: Gilles Bayon
>      Fix For: DataMapper 1.5

>
> The MySQL tinyint (one character byte) and unsigned numeric formats are not handled by the built-in handlers. 
> If used, a null pointer exception is thrown in ResultMapping, line 398. 
> We might want to consider supporthing these formats out of the box. 

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


[jira] Commented: (IBATISNET-164) Byte (MySQL tinyint) and MySQL unsigned numeric formats not support by default TypeHandlers

Posted by "Ted Husted (JIRA)" <ib...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/IBATISNET-164?page=comments#action_12418002 ] 

Ted Husted commented on IBATISNET-164:
--------------------------------------

I didn't probe deeplly, but when I first  tried to migrate to 1.3 from 1.2, I couldn't get "tinyint" to work, signed or unsigned, and others (smallint, int)  only worked signed.  To move forward, I changed the column types to smallint, unsigned, and everything worked. 

I'll give the original schema a try against the nighly build today and report back. 

-Ted.


> Byte (MySQL tinyint) and MySQL unsigned numeric formats not support by default TypeHandlers
> -------------------------------------------------------------------------------------------
>
>          Key: IBATISNET-164
>          URL: http://issues.apache.org/jira/browse/IBATISNET-164
>      Project: iBatis for .NET
>         Type: Improvement

>     Reporter: Ted Husted
>     Assignee: Gilles Bayon
>      Fix For: DataMapper 1.5

>
> The MySQL tinyint (one character byte) and unsigned numeric formats are not handled by the built-in handlers. 
> If used, a null pointer exception is thrown in ResultMapping, line 398. 
> We might want to consider supporthing these formats out of the box. 

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