Problems with TOraSQL and CRLF
Problems with TOraSQL and CRLF
Hi,
i i try to execute the following statement with TOraSQL i've got an error:
begin
execute immediate 'begin
null;
end;';
end;
The problem is that the string inside execute immediate contains a crlf and this is not allowed.
Any Chance to fix this?
Greetings
Jens
i i try to execute the following statement with TOraSQL i've got an error:
begin
execute immediate 'begin
null;
end;';
end;
The problem is that the string inside execute immediate contains a crlf and this is not allowed.
Any Chance to fix this?
Greetings
Jens
Oracle SQL syntax does not allow CRLF inside normal string constants. But in Oracle 10 you can use the alternative quoting. For example:
Code: Select all
begin
execute immediate q'[begin
null;
end;]';
end;I know, that it's not allowed.
The problem is: you have a text editor and use the
Assignment to assign the strings.
Then you got such a problem.
It's the same in your odac demo sample application.
What about changing the #13#10 to #10 using the ConvertEOL property of the session whenever a OraQuery Statement is executed.
Which other way exists to remove the #13 after a
Greetings
Jens
The problem is: you have a text editor and use the
Code: Select all
OraQuery.Sql := Memo.Lines; Then you got such a problem.
It's the same in your odac demo sample application.
What about changing the #13#10 to #10 using the ConvertEOL property of the session whenever a OraQuery Statement is executed.
Which other way exists to remove the #13 after a
Code: Select all
OraQuery.Sql := Memo.Lines;Jens
The current version of ODAC has special code that leaves CRLF in string constants as is. We think that using the ConvertEOL option in this code can break compatibitity with previous ODAC versions.
If you want we can send you changes to the ODAC source code that will enable replacing CRLF in string constants.
If you want we can send you changes to the ODAC source code that will enable replacing CRLF in string constants.