Subject | Re: [firebird-php] ibase_param_info |
---|---|
Author | masotti |
Post date | 2010-07-28T11:11:16Z |
On 28/07/2010 11:55, Sándor Tamás wrote:
Only data type and length can be filled by interface because only those
informations come from firebird library interface. When you have a ?
placeholder there is no name, alias, or relation because in the query
your parameters would have no field relationship as in:
SELECT * FROM TABLE WHERE KEYFIELD = ? OR 1 = ?
to have all data (second parameter set to 1) or only keyed records (
second parameter set to anything else).
Ciao.
Mimmo.
> I think now that the driver uses the same structure for parameters asSorry for my bad english, but this is exactly what I mean.
> for fields, but for parameters, these values (name, alias, and relation)
> are left empty.
Only data type and length can be filled by interface because only those
informations come from firebird library interface. When you have a ?
placeholder there is no name, alias, or relation because in the query
your parameters would have no field relationship as in:
SELECT * FROM TABLE WHERE KEYFIELD = ? OR 1 = ?
to have all data (second parameter set to 1) or only keyed records (
second parameter set to anything else).
Ciao.
Mimmo.