My Oracle Support Banner

TimesTen: Decode function returns wrong result when used in View Defination (Doc ID 2263722.1)

Last updated on SEPTEMBER 10, 2017

Applies to:

Oracle TimesTen In-Memory Database - Version to [Release 11.2]
Information in this document applies to any platform.


DECODE Function is not showing correct result in View . A simple reproduction test case is as follows

This query result is correct

Command> select decode(NULL,'',1,0) from dual;
< 1 >
1 row found.

While when the view is created , it is giving wrong result

Command> create view test_v as select decode(NULL,'',1,0) A from dual;
Command> select * from test_v;
< 0 >
1 row found.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.