TUniLoader: column names ignored?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
martin.trummer
Posts: 19
Joined: Mon 12 May 2014 14:16

TUniLoader: column names ignored?

Post by martin.trummer » Mon 11 Aug 2014 08:48

when using the TUniLoader component the column names seem to be ignored.
I use 5.3.9 and SQL Server 2014.

in a simple example, I have a table with 3 fields:
  • ID (datetime)
  • AI0 float
  • AI1 float
I specify only 2 columns in the TUniLoader:
  • ID
  • AI1
simple logic to insert test-data

Code: Select all

  for I := 1 to 50 do
  begin
    Sender.PutColumnData(0, I, I);
    Sender.PutColumnData(1, I, 2.2*I);
  end;
but when I look at the data in the database, the fields ID and AI0 have the values - AI1 has only nulls.
But according to the Columns list, the data should have been written to AI1 (not AI0).

it even works, when I specify a non-existing name for the TDAColum object (e.g. XXX instead of AI1').

I've also tried the OnGetColumnData function - with the same result. Any ideas what could be wrong?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: TUniLoader: column names ignored?

Post by azyk » Wed 13 Aug 2014 13:35

Thank you for the information. We have reproduced the problem and will investigate it.

Post Reply