Page 1 of 1

Query with unicode data

Posted: Wed 23 Aug 2006 12:08
by Adil
Hello.

How I can send query with unicode parameters. For example:

OraQuery1.SQL.Text='
SELECT * FROM "ADIL"."USERS" WHERE "username"='+usr;

Where usr is widestring.

If it`s not possible, what tricks I can use??

Posted: Wed 23 Aug 2006 13:12
by Plash
Set UseUnicode option of TOraSession to True. Then you can assign to TOraQuery.SQL property value:

Code: Select all

SELECT * FROM "ADIL"."USERS" WHERE "username"=:usr
Set DataType for USR parameter to ftWideString and assign value to this parameter using AsWideString property.