[fpc-pascal] Why TSqlScript has no parameters?

Luca Olivetti luca at ventoso.org
Mon Oct 10 12:00:51 CEST 2022


Hello,

I need to execute more than one statement.
TSqlQuery it seems to accept multiple statements but then it gives a 
strange error (posgtresql error "no parameter $2", the parameter it 
refers to is defined and used in  the second statement).
So I tried a TSQlScript but then I could find no way to pass parameters.
I'm used to the zeos components and its TZSQLProcessor (rough equivalent 
of TSqlScript) has parameters just like a query.

Bye
-- 
Luca


More information about the fpc-pascal mailing list