Page 1 of 1

TUniLoader: column names ignored?

Posted: Mon 11 Aug 2014 08:48
by martin.trummer
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?

Re: TUniLoader: column names ignored?

Posted: Wed 13 Aug 2014 13:35
by azyk
Thank you for the information. We have reproduced the problem and will investigate it.