ok. i updated to fpc 2.2.2 after moneying around with lazarus and alle the paths.... i actually hate it to install fpc and lazarus... but its another topic...
i found that if i use parameters, the transaction connected to my TSQLQuery, has to be connected to db TIbconnection object.
here an example
ibDb:=TIBConnection.Create(nil);
ibDb.Dialect:=3;
ibDb.DatabaseName:=ConData.folder;
ibDb.Password:=conData.password;
ibDB.UserName:=conData.username;
SQLTRANS:=TSQLTransaction.Create(nil);
SQLTRANS.DataBase:=ibDb;
ibDb.Transaction:=SQLTRANS; //<<<<<<<<<<<< THIS ONE!
ibSQL:=TSQLQuery.Create(nil);
ibSQL.DataBase:=ibDB;
ibSQL.Transaction:=SQLTRANS;
if i unset the market line, everything works fine until i use parameters in my queries....
its not so pleasant, because i created JUST one instance of TIbconnectino in my application and many transactions and tsqlQueries (every action that wants to use the db, creates a new transaction and a new tsqlquery).
ok my actual work around is now to set the TIbconnection instance to global and assign the used transaction to it, just before query.execSql.
Meanwhile ill hope, that this strange behaviour will be fixed some time...
thanks for help!!!
greetings