[TYPO3-core] RFC #15457: Add support for prepared queries [summary and pending questions]

Xavier Perseguers typo3 at perseguers.ch
Thu Aug 19 21:01:15 CEST 2010


Hi,

> Xavier, if you don't have anything against it, could we agree on that
> minor follow-up, as the new API is still fresh?
>
> So magic also on "NULL", else we won't be able to write "NULL" string to
> the DB:
>
> if (is_bool($value)) {
>     $type = self::PARAM_BOOL;
> } elseif (is_int($value)) {
>     $type = self::PARAM_INT;
> } elseif (is_null($value)) {
>     $type = self::PARAM_NULL;
> } else {
>     $type = self::PARAM_STR;
> }
>
> Agreed?

Yes.

Attached patch committed to trunk as follow-up (rev. 8626).

Cheers
Xavier
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15421_followup.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100819/78afcac5/attachment-0001.txt>


More information about the TYPO3-team-core mailing list