Re: Is this a bug with MDB2_Extended executeMultiple?

From: Date: Sat, 02 Feb 2008 00:42:48 +0000
Subject: Re: Is this a bug with MDB2_Extended executeMultiple?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28504@lists.php.net to get a copy of this message
Dmitri wrote:
Hello! I noticed that when I use extended module to run executeMultiple, and one of the values begins with a '#', then the method fails for example (this is from MDB2 documentation, only value of 2nd element is changed) I need to insert the value of HTML color, so it has to start with a '#' |$mdb2->loadModule('Extended', null, false); $alldata = array(array(1, 'one', 'en'),
                array(2, 'two', '#FFCC99'),
                array(3, 'three', 'tre'),
                array(4, 'four', 'fire'));
$sth = $mdb2->prepare('INSERT INTO numbers VALUES (?, ?, ?)'); $mdb2->extended->executeMultiple($sth, $alldata); I get an error, a stange Pear error: MDB2 Error: not found
What happens if you escape it with a backslash? Although, if it succeeds, does it insert the backslash? (that would suck) b

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