|
But it should work even without the cast... Derby compiler should be
able to cast the untyped NULL to the other operand type. Satheesh Christian d'Heureuse (JIRA) wrote: [ http://nagoya.apache.org/jira/browse/DERBY-7?page=comments#action_57077 ] Christian d'Heureuse commented on DERBY-7: ------------------------------------------I think this is the same problem, because NULLIF() and CASE (whenThenExpression) both are implemented using CONDITIONAL_NODE. But for CASE, the error can be avoided by using "CAST(NULL as INT)" instead of an untyped NULL: values (case when 1.0=1.0 then cast(null as int) else 10 end); For NULLIF() this is not possible. |
- [jira] Commented: (DERBY-7) Bug in NULLIF Func... Satheesh Bandaram
- [jira] Commented: (DERBY-7) Bug in NULLIF... Jeremy Boynes (JIRA)
- Re: [jira] Commented: (DERBY-7) Bug in NU... Jeremy Boynes
- [jira] Commented: (DERBY-7) Bug in NULLIF... Amit Handa (JIRA)
- [jira] Commented: (DERBY-7) Bug in NULLIF... Christian d'Heureuse (JIRA)
- [jira] Commented: (DERBY-7) Bug in NULLIF... Jeremy Boynes (JIRA)
- [jira] Commented: (DERBY-7) Bug in NULLIF... Satheesh Bandaram (JIRA)
- [jira] Commented: (DERBY-7) Bug in NULLIF... Christian d'Heureuse (JIRA)
- Re: [jira] Commented: (DERBY-7) Bug in NU... Amit Handa
