Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't compile procedure when collate operator is used in select into query.

BozoDec 14 2021 — edited Dec 14 2021

I can't compile procedure/function in SQL Developer (21.2.1.204) when COLLATE operator is used, same procedure can be compiled in SQLPlus. Is this a bug?
Example SQL Developer:

Error starting at line : 1 in command -
create or replace procedure test_proc
as
  v varchar2(1);
begin
  select dummy
  into  v
  from  dual
    where dummy = 'x' collate binary_ci;
end test_proc;
Error report -
No more data to read from socket

Example SQLPlus:

SQL> create or replace procedure test_proc
 2 as
 3 v varchar2(1);
 4 begin
 5 select dummy
 6 into v
 7 from dual
 8 where dummy = 'x' collate binary_ci;
 9 end test_proc;
 10 /

Procedure created.
Comments
Post Details
Added on Dec 14 2021
10 comments
325 views