After ODAC 6.50 Update, Data Insert Error Occured!!!

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
taru3004
Posts: 1
Joined: Wed 17 Jun 2009 05:44

After ODAC 6.50 Update, Data Insert Error Occured!!!

Post by taru3004 » Wed 17 Jun 2009 08:05

After I did ODAC Update 4.50 -> 6.50 with same code,
I got some problem with query command(INSERT).

For example,
I inserted values (ID = 'user1', Name = 'delphi 6')in "my_DB" table.

But result is not normal.
By command(select), I found that "delphi 6" is in ID colum and "null" in Name colum.

this is source..

Code: Select all

var
  i: Integer;
  ver: WORD;
begin
...
  With OraQuery1 Do Begin
      SQL.Clear;
      SQL.ADD('Insert Into My_DB(seq, reg_date, id, ver, name, note) ' +
           'Values(:seq,:reg_date,:id,:ver,:name,:note)';
      for i:=0 to ListView1.Items.Count -1 Do
      begin
           ParamByName('seq').Value:= i;    // DB Type = Number
           ParamByName('reg_date,').Value:= Now;    // DB Type = Date
           ParamByName('id').Value:= 'user1';    // DB Type = VarChar2(20)
           ParamByName('ver').Value:= ver;    // DB Type = Number
           ParamByName('name').Value:= 'delphi6';    // DB Type = VarChar2(100)
           ParamByName('note').Value:= NullString;    // DB Type = VarChar2(100)

           ExecSQL;
      end;

       Close;
    End;

end;

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

Post by Plash » Fri 19 Jun 2009 08:18

We could not reproduce the problem. Please send to odac*devart*com a complete small sample that demonstrates the problem, including the script for creating database objects.

Post Reply