Hi everyone,
I am new to Lazarus, but with many years of Delphi experience.
All I am trying to do is to assign a ServerFilter at run time and the following code generates a segment violation error in ubuntu 14.04 / 64bit with Lazarus 1.2.2 and fpc 2.6.4
SQLQueryInstruments.ServerFiltered := False;
SQLQueryInstruments.ServerFilter := Filter;
SQLQueryInstruments.ServerFiltered := True;
but it works when the DataSet is closed, i.e. when I change it to:
SQLQueryInstruments.Close;
SQLQueryInstruments.ServerFiltered := False;
SQLQueryInstruments.ServerFilter := Filter;
SQLQueryInstruments.ServerFiltered := True;
SQLQueryInstruments.Open;
I don't think that is necessary the DataSet to be closed, the code in sqldb "SetServerFilter" checks if it is active to re fetch the data as it should, so what am i doing wrong ?
Any help / advice will be highly appreciated
TIA