Statement "CREATE DOMAIN [dm_name] as BIGINT" raises "numeric value is out of 
range"  if its default value is -9223372036854775808
----------------------------------------------------------------------------------------------------------------------------------

                 Key: CORE-6291
                 URL: http://tracker.firebirdsql.org/browse/CORE-6291
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 4.0 Beta 1
            Reporter: Pavel Zotov


Run this script:
======
create domain dm_bigint_absolute_max as bigint default 9223372036854775807;
create domain dm_bigint_near_abs_min as bigint default -9223372036854775807;
create domain dm_bigint_absolute_min as bigint default -9223372036854775808;
======

Its last statement will raise:
======
Statement failed, SQLSTATE = 22003
unsuccessful metadata update
-CREATE DOMAIN DM_BIGINT_ABSOLUTE_MIN failed
-Dynamic SQL Error
-SQL error code = -104
-arithmetic exception, numeric overflow, or string truncation
-numeric value is out of range
======

Only 4.x is affected (I've checked several 64-bit snapshots, since 4.0.0.840 
and up to current  4.0.0.1935; result is the same on Windows and Linux).



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