Jonathan Taylor
Member²
Version : 6.0.5.926
the large data editor seems to misinterpret a Unix-style end of line terminator (one character - CHR(10) - LF) as a Windows/DOS end of line terminator (two characters - CHR(10)||CHR(13) CR/LF).
create table eol_test (clb clob,vc2 VARCHAR2(20));
insert into eol_test values ('abc'||CHR(10)||'def','abc'||CHR(10)||'def'); --Unix EOL
SQL> select dbms_lob.getlength(clb) clb_len
2 ,clb
3 , length(vc2) vc2_len
4 ,vc2
5 from eol_test
6 ;
CLB_LEN CLB VC2_LEN VC2
---------- -------------------------------------------------------------------------------- ---------- --------------------
7 abc 7 abc
def def
This gives the correct results.
However, when the CLB and VC2 fields are inspected in the Large Data Editor, the length is reported as 8. Looking in the "Hex" tab reveals two characters - OD 0A - these are the DOS CR/LF characters.
the large data editor seems to misinterpret a Unix-style end of line terminator (one character - CHR(10) - LF) as a Windows/DOS end of line terminator (two characters - CHR(10)||CHR(13) CR/LF).
create table eol_test (clb clob,vc2 VARCHAR2(20));
insert into eol_test values ('abc'||CHR(10)||'def','abc'||CHR(10)||'def'); --Unix EOL
SQL> select dbms_lob.getlength(clb) clb_len
2 ,clb
3 , length(vc2) vc2_len
4 ,vc2
5 from eol_test
6 ;
CLB_LEN CLB VC2_LEN VC2
---------- -------------------------------------------------------------------------------- ---------- --------------------
7 abc 7 abc
def def
This gives the correct results.
However, when the CLB and VC2 fields are inspected in the Large Data Editor, the length is reported as 8. Looking in the "Hex" tab reveals two characters - OD 0A - these are the DOS CR/LF characters.