Subject Re: [firebird-php] Variable parameters number
Author Milan Babuskov
masotti wrote:
>> Your current 'library' must have some means of identifying which
>> parameter goes with which '?' even if it is hidden, but suspect that
>> information is not stored with the query?
> The information is stored with the query, in the sense that I've already
> queries in the form
> SELECT 'A', 'B', K.THAT, K.THIS, K.OTHER FROM OK K WHERE K.GGG = :PARAM1
> AND K.SSS = :PARAM1

This is the 'magic' done by BDE and other Delphi libs. It replaces
:SOMETHING with ? once you decide to run the statement and keeps the
(parameter number->parameter name) pairs, so you can refer to them.

--
Milan Babuskov
http://www.flamerobin.org