Whenever I am trying to opan a query i get this message: Bookmark was not found. And application instantly terminates.
This is the code that causes problems:
Code: Select all
if Database.SQLQuery.Active then Result:=-1 else begin
Database.SQLQuery.SQL.Text:=Sql;
Log.Add('Opening query for: '+sql);
Writeln(sql);
Database.SQLQuery.Open;
Result:=0;
end;
I am running Postgresql 8.3 server on Linux. Connection is properly established (at least no error occurs). FPC version is 2.4.0 and Lazarus revision is 0.9.29 23415