My Oracle Support Banner

PL/SQL Raises ORA-01403 With Where Char Column Comparing To Varchar2 Bind Variable, Hard-Coded Condition Works (Doc ID 1175113.1)

Last updated on DECEMBER 06, 2019

Applies to:

PL/SQL - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

A PL/SQL procedure is failing to run successfully.  The implicit cursor embedded in the block (SELECT statement) is returning 0 rows:

The following SQL will generate the test table & data to illustrate the issue. Notice that the first record is only 4 characters but the following three records have 5 due to the space added to the end.



Cause

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
Symptoms
Cause
Solution


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