procedure mbrtest
is
mbr varchar2(10):= ’
‘;
begin
dbms_output.put_line(‘len=’||length(mbr));
for c1 in 1…length(mbr) loop
dbms_output.put_line(‘mbr(’||c1||’)=’||ascii(substr(mbr, c1, 1)));
end loop;
end;
7.0 uses a new component in the Code Editor and it chooses #13#10 as the default line breaks, while 6.7 chooses #10. Currently there is no setting to allow user to specify the line break character in the Code Editor yet. I just raised issue SQLNAV-1240 to log this.
I could compile the 2nd procedure after I added the missing IS back to the end of the 1st line. I don’t think #13 would stop it from compiling. Could you please check it again?
Yes, compiling works fine, but executing fails…with ORA - and you can’t see anything wrong - and you can’t fix it in SQLNAV 7.0 - unless you put everything to one line or terminate the string every line by adding " '||chr(10)|| "
Is there a solution available now ? I have exactly the same Problem. Execute Immediate doesn’t work with anonymous blocks. Compiling OK, but executing Fails
ORA-06550: line 1, column 29:
PLS-00103: Encountered the symbol “” when expecting one of the following: