Add build in TRY_CAST function 
-------------------------------

                 Key: CORE-5378
                 URL: http://tracker.firebirdsql.org/browse/CORE-5378
             Project: Firebird Core
          Issue Type: New Feature
          Components: Engine
            Reporter: Karol Bieniaszewski


Will be good to see TRY_CAST function.
It is similar to normal CAST 
but when cast is not possible then TRY_CAST return NULL instead like normal 
CAST throw error

usage:

SELECT TRY_CAST('XYZ' AS INTEGER), TRY_CAST('123' AS INTEGER) FROM RDB$DATABASE

result:
NULL, 123

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