Re: MDB debug

From: Date: Mon, 05 May 2003 11:50:09 +0000
Subject: Re: MDB debug
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5236@lists.php.net to get a copy of this message
Lukas Smith wrote:
From: Jeroen Houben [mailto:jeroen@terena.nl] Sent: Monday, May 05, 2003 1:25 PM
Alright, so that's now working fine, thanks. Still don't understand why the ! sign in:
       $query = 'UPDATE docsections SET
section_id='.$db->getIntegerValue($move_to).' WHERE doc_id=!'; doesn't work. Another bug?
PEAR::MDB only supports the '?' placeholder. ! and & are PEAR::Db specific. MDB's ? is pretty much what ! is to PEAR::DB. You are responsible to do any sort of conversions, either by using the get*Value methods or passing an array with types. I've got it working now, just passing an array of types. Thanks.
I just thought sometime ago you said you were going to incorporate the & and ! as well and I was just wondering if you had. Are you still going to? Jeroen

« previous php.pear.general (#5236) next »