odac 6.8+delphi2009 params.asstring error!

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
xalion
Posts: 124
Joined: Fri 20 May 2005 10:08

odac 6.8+delphi2009 params.asstring error!

Post by xalion » Fri 03 Apr 2009 07:45

ODAC version:6.8.0.46
oracle: oracle 10.2.0.4.0
oracle chartset:ZHS16GBK
OS: windows xp simple chinese sp3

create table YHK
(
ID NUMBER(38) not null,
NAME VARCHAR2(20),
PASSWORD VARCHAR2(20),
EMAIL VARCHAR2(50),
HOMEPAGE VARCHAR2(100),
ADR VARCHAR2(200),
INDATE DATE,
BZ VARCHAR2(1),
ADMIN VARCHAR2(1),
NOTE VARCHAR2(1000),
LASTTIME DATE
)

with cx do
begin
sql.Clear;
sql.Add('select * from yhk where name=:bh');
params[0].AsString:='xa';
open;
showmessage(fields[0].AsString);
end;

in databse I have a record and name='xa',
but when run this code. it return nothing.

this code in delphi 2007, it works fine.

hannes_a
Posts: 77
Joined: Sun 22 Jan 2006 20:44
Location: munic

Re: odac 6.8+delphi2009 params.asstring error!

Post by hannes_a » Fri 03 Apr 2009 08:08


Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 06 Apr 2009 08:10

In the current ODAC build ftWideString parameters are not working in the Direct mode when UseUnicode = False. We are planning to add a fix in the next build.

Post Reply