Cast any string to `long long`  rather than to `int` 
-----------------------------------------------------

                 Key: CORE-4547
                 URL: http://tracker.firebirdsql.org/browse/CORE-4547
             Project: Firebird Core
          Issue Type: Improvement
    Affects Versions: 3.0 Alpha 2
            Reporter: Pavel Zotov
            Priority: Minor


Cast string to int not possible if it contains too many digits in fraction part:

SQL> select cast('1.0000000000' as int) from rdb$database;

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

It will be useful if FB will internally do  first transformation of string to 
`long long` rather than to int.

-- 
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

        

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to