Hello,
as title says I'm trying to migrate my Delphi Oracle application from Delphi 7 to Delphi 2010 with unicode support.
As I allready figured out everything is working ok if I use queries using Variables, but a big part of my application uses direct SQL statements so there unicode doesn't work. If I give an example code, which doesn't work:
var Q: TOracleDataset;
UnicodeString: string;
begin
Q.Close;
Q.Sql.Text := 'SELECT * FROM MYTABLE WHERE MYCOL='''+UnicodeString+'''';
Q.Open;
end;
This code allways returns empty result.
As I figured out if I use unicode SQL in Oracle SqlDeveloper such SQL works ok, so it must be DirectOracleAccess components problem. Is there a way this to work, because transfering all SQL-s to work with Variables is very big problem for me.
Can anyone help me in any way?
as title says I'm trying to migrate my Delphi Oracle application from Delphi 7 to Delphi 2010 with unicode support.
As I allready figured out everything is working ok if I use queries using Variables, but a big part of my application uses direct SQL statements so there unicode doesn't work. If I give an example code, which doesn't work:
var Q: TOracleDataset;
UnicodeString: string;
begin
Q.Close;
Q.Sql.Text := 'SELECT * FROM MYTABLE WHERE MYCOL='''+UnicodeString+'''';
Q.Open;
end;
This code allways returns empty result.
As I figured out if I use unicode SQL in Oracle SqlDeveloper such SQL works ok, so it must be DirectOracleAccess components problem. Is there a way this to work, because transfering all SQL-s to work with Variables is very big problem for me.
Can anyone help me in any way?