OracleDataset query

llz

Member
I have an OracleDataSet Query in Delphi:
select * from t where
field1='asd--sdf';
it is error : ORA-01756 the query is not
right end.
but when I change:
select * from t where
field1=:field1;
DeclareVariable(Field1,otString);
SetVariable(field1,'asd--sdf');
it is right;

whether the char '--' is special character,but how to do?
Could give me any message? Thanks.
 
This sounds like a bug that was fixed in 3.4.3. Are you using 3.4.2 or earlier?

------------------
Marco Kalter
Allround Automations
 
Back
Top