Re: Re: Is this a bug with MDB2_Extended executeMultiple?
| From: | Lorenzo Alberton | Date: | Sat, 02 Feb 2008 18:16:31 +0000 |
| Subject: | Re: Re: Is this a bug with MDB2_Extended executeMultiple? | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28507@lists.php.net to get a copy of this message | ||
Dmitri wrote:
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?that's possible. The type auto-detection uses gettype(), IIRC, which might consider your hexcode as a number. Using autoExecute() and passing the data types is certainly a safer option. Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ________________________________________________________________________ Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza canone, 2 e-mail da 25 Mb, 150 Mb di spazio web e molto di piщ! Registrati gratis: http://www.quipo.it