I have this weird bug where the warning is printed after the query is
executed and printed
Result is correct , warning is correct only the order is out of order
ps: I will ask on pdo list too
I have this weird bug where the warning is printed after the query is
executed and printedResult is correct , warning is correct only the order is out of order
Is it? - The output is
string(5) "test1"
which is not expected. The test assumes that :id-value is not
interpreted as a place holder, but interpreted as :id -value so the
placeholder's name is :id, only.
I don't know about firebird ... does it handle the named parameters
itself and interpret :id-value as name? Then that's where the difference
comes from.
johannes
Johannes Schlüter wrote:
I have this weird bug where the warning is printed after the query is
executed and printedResult is correct , warning is correct only the order is out of order
Is it? - The output is
string(5) "test1"
which is not expected. The test assumes that :id-value is not
interpreted as a place holder, but interpreted as :id -value so the
placeholder's name is :id, only.
I don't know about firebird ... does it handle the named parameters
itself and interpret :id-value as name? Then that's where the difference
comes from.
Firebird only has positional parameters, so any linkage to names is external to
the query or the return.There are a few areas at PDO expects responces that a
number of the engines do not actually provide, and emulating them in extra code
does seem to be a little excessive?
I've just proted piwik to work with the generic Firebird driver, when the core
code has only been designed for pdo_mysql. Not to difficult once I'd extended
the Zend Firebird driver, and quite happily simply supplying arrays of
parameters to the query execution.
--
Lester Caine - G8HFL
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php