Computed decimal field in a view has wrong RDB$FIELD_PRECISION
--------------------------------------------------------------

                 Key: CORE-5550
                 URL: http://tracker.firebirdsql.org/browse/CORE-5550
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.2
         Environment: FB3.0.2 x64
            Reporter: Jiri Cincura


Steps to reproduce:

1. Create empty database.
2. "create view test(f) as select cast((select null from rdb$database) as 
decimal(10,2)) from rdb$database;"
3. "select rdb$field_precision, rdb$field_scale from rdb$fields where 
rdb$field_name='RDB$1';"

Result:
RDB$FIELD_PRECISION             0
RDB$FIELD_SCALE                 -2

Fails with decimal(2,2), decimal(18,4) as well (and probably with every other).

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

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to