[Solar-talk] bounding zero

Rodrigo Moraes rodrigo.moraes at gmail.com
Mon Mar 12 12:14:15 PDT 2007


On 3/12/07, Paul M Jones wrote:
> Can you tell if this is a problem with Solar_Sql, or if it is with PDO?

Sorry to insist, but perhaps it was not clear. It seems to be a
Solar_Sql problem: it needs a strict checking to see if a value was
passed to be quoted.

With no strict checking, it seems that SOLAR_IGNORE_PARAM is cast by
php automaticaly to int and then it will be equal as 0 (so quoteInto()
is not called and a bound parameter will be missing) in the query.

With a strict comparison, no cast is executed by php, so
SOLAR_IGNORE_PARAM will be different than 0 and it will be quoted as
well.

rodrigo


More information about the solar-talk mailing list