Read from Text File - variable is different than file
Posted: Tue May 03, 2011 6:50 am
Hi
I have an oracle scripts to read and I noticed that variable has different content than script.
I used function Read from Text File:
#readall\c:\temp\script.pcb
Content of the script was:
select FROM V$VERSION
where upper(banner) like '%ORACLE%';
Content of the variable was:
select FROM V1.0newline$where upper(banner) like '%ORACLE%';
After some trying my conclusion was:
- text $VERSION in combination with some character and CRLF produces the same result as $VERSION$
- text $VERSION in combination without some character and with CRLF produces the correct result
Is this a bug?
Can be avoided considered that this example is the part of the lager script?
Regards
Marko
I have an oracle scripts to read and I noticed that variable has different content than script.
I used function Read from Text File:
#readall\c:\temp\script.pcb
Content of the script was:
select FROM V$VERSION
where upper(banner) like '%ORACLE%';
Content of the variable was:
select FROM V1.0newline$where upper(banner) like '%ORACLE%';
After some trying my conclusion was:
- text $VERSION in combination with some character and CRLF produces the same result as $VERSION$
- text $VERSION in combination without some character and with CRLF produces the correct result
Is this a bug?
Can be avoided considered that this example is the part of the lager script?
Regards
Marko