Stef_SM
2008-04-15 08:31:28 UTC
Hello,0
Using BDS 2006, win32.
I encounter a problem while updating a field (varchar2(2000)) on an
oracle DB, with the provided Oracle driver.
Where I run :
SQLConn.ExecuteDirect('UPDATE FOO_TABLE SET FOO_FIELD =' +
QuotedStr(Memo1.Text));
Memo1.Text can contain line feeds (CR/LF), but once executed, after
verificaitons, the field FOO_FIELD contains only LF/LF. All the CR/LF
are changed to LF/LF...
If use a TSQLQuery, with a parameter :
UPDATE FOO_TABLE SET FOO_FIELD = :MEMO1_TEXT
with TSQLQuery.ParamByName('MEMO1_TEXT').AsString := Memo1.Text;
and ExecSQL method... then FOO_FIELD contains CR/LF, that's ok in this
case.
I've no problem with SQLServer, in both cases FOO_FIELD contains CR/LF.
Does anyone know this problem and have an explanaiton or a solution to
have the sdame behavior with Oracle driver ?
Thanks.
Using BDS 2006, win32.
I encounter a problem while updating a field (varchar2(2000)) on an
oracle DB, with the provided Oracle driver.
Where I run :
SQLConn.ExecuteDirect('UPDATE FOO_TABLE SET FOO_FIELD =' +
QuotedStr(Memo1.Text));
Memo1.Text can contain line feeds (CR/LF), but once executed, after
verificaitons, the field FOO_FIELD contains only LF/LF. All the CR/LF
are changed to LF/LF...
If use a TSQLQuery, with a parameter :
UPDATE FOO_TABLE SET FOO_FIELD = :MEMO1_TEXT
with TSQLQuery.ParamByName('MEMO1_TEXT').AsString := Memo1.Text;
and ExecSQL method... then FOO_FIELD contains CR/LF, that's ok in this
case.
I've no problem with SQLServer, in both cases FOO_FIELD contains CR/LF.
Does anyone know this problem and have an explanaiton or a solution to
have the sdame behavior with Oracle driver ?
Thanks.
--
Stef
Stef