Select In MSQL Returns Incorrect Results (Doc ID 1467543.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Lite - Version 10.3.0.3.0 to 10.3.0.3.0 [Release 10.3]
Information in this document applies to any platform.

Symptoms

MSQL is returning a row when it shouldnt i.e.

Create table testable (col1 number(2), col2 varchar(10));
Insert into testable values (1, ’test’);
Select * from testable where (col1 like ’2’ or col2 like ’2’) and col1 =1;

and should not return any results, but in fact it returns.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms