• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Support for the TRY_CAST built-in SQL function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Support for the TRY_CAST built-in SQL function

    Support for the TRY_CAST built-in SQL function would be very useful. TRY_CAST returns null when not able to cast, which makes it very flexible. If I try to use it now in a data source, it won't accept it even though it is valid SQL.

    Code:
    Select TRY_CAST('123' as Dec(9)) as goodNum,              -- returns 123
           IfNull(TRY_CAST('abcd' as Dec(9)), 0) as badNum    -- returns 0
    From SysIBM/SysDummy1?
    Thanks!

  • #2
    Thanks for letting us know and this will be available in the next 6.3 update;

    Comment

    Working...
    X