Error converting string with hex representation of integer to smallint
----------------------------------------------------------------------

                 Key: CORE-6398
                 URL: http://tracker.firebirdsql.org/browse/CORE-6398
             Project: Firebird Core
          Issue Type: Bug
    Affects Versions: 3.0.6, 4.0 Beta 2, 2.5.9
            Reporter: Alexander Peshkov


SQL> select cast('0x8000' as smallint) from rdb$database; 

   CAST 
======= 
Statement failed, SQLSTATE = 22003
arithmetic exception, numeric overflow, or string truncation
-numeric value is out of range

On the other hand:
SQL> select cast('0x80000000' as int) from rdb$database; 

        CAST 
============ 
 -2147483648 


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

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to