Re: Re: Is this a bug with MDB2_Extended executeMultiple?

From: Date: Sat, 02 Feb 2008 16:35:47 +0000
Subject: Re: Re: Is this a bug with MDB2_Extended executeMultiple?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28506@lists.php.net to get a copy of this message
Thank you. Yes, it has something to do with placeholders. Actuall it's not caused by the '#' sign. Sorry about the confusion, after testing it I found that I'm getting the same error even without the '#' sign. However the error does not come up all the time. This is what's strange about it. I still have not found a solution, I'll try to use named placeholders like :style_value, :style_name, etc. I also think it may be due to mismatched types. I wonder if this is because the MDB2 drivere expects the type 'text' but then sees that the value looks like a hexidecimal and assumes that it's an integer, thus a mismatch? For now I started using autoExecute from inside the loop instead of using executeMultiple This works for me, at least for now. Lorenzo Alberton wrote:
in this case a 'not found' error is most probably due to a missing placeholder. You can get a more detailed message calling getUserInfo(): ================================== $res = $mdb2->extended->executeMultiple($sth, $alldata); if (PEAR::isError($res)) { echo 'ERROR: '. $res->getMessage(). ' :: ' . $res->getUserInfo(); } ================================== HTH Best regards,


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