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

Helmut Hummel helmut at typo3.org
Fri Aug 20 07:55:49 CEST 2010


On 19.08.10 23:57, Steffen Kamper wrote:
> Hi,
> 
> right question to wrong thread - i'm just curious how you pass a 
> NULL-type to bindValue which is not NULL :)

Not NULL PHP type, but PARAM_NULL type; see:


$statement = $GLOBALS['TYPO3_DB']->prepare_SELECTquery('uid, title',
'pages', 'pid = :pid');

$pid='foo';

$statement->bindValue(':pid', $pid, t3lib_db_PreparedStatement::PARAM_NULL);


Regards Helmut


More information about the TYPO3-team-core mailing list