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

Xavier Perseguers typo3 at perseguers.ch
Fri Aug 20 09:17:06 CEST 2010


Hi Helmut,

>> I'll have a look at that but it's actually not a bug, it's documented as
>> this in the phpDoc ;-)
>
> Uh, well, I do not remember that that was changed, since your test
> example had that feature:
>
>> sample #1 (named parameter)
>> ====================================
>> $statement = $GLOBALS['TYPO3_DB']->prepare_SELECTquery('*', 'pages',
>> 'pid = :pid');
>> $statement->execute(array(':uid' =>  2));
>> while (($row = $statement->fetch()) !== FALSE) {
>> 	// ...
>> }
>> $statement->free();
>
> Since you and me intutively expected this to be possible, we probably
> should implement it ;)

:-)

> I see no problem having this in place, do you?

No, I agree that it should be possible.

You started unit tests right? If you manage to attach them here, I'll 
commit the whole at once.

Xavier


More information about the TYPO3-team-core mailing list