News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Content with Style Blog:
Zend Framework DB and Mysql pre 5.17
October 09, 2009 @ 10:33:12

The Content with Style blog has a gotcha that Zend Framework developers could come across if they're using MySQL pre-5.17:

was getting weird errors when running multiple queries with Zend Framework, that I just couldn't replicate on my local environment. [...] Turns out the server runs MySQL pre 5.17.

This caused a stack trace error where the queries wouldn't run correctly. The solution was (like the error message suggests) turning on query buffering with the "PDO::MYSQL_ATTR_USE_BUFFERED_QUERY" in the PDO connection's parameters. You can find out more information about the parameters you can pass to the adapter in this section on the Zend Framework' Zend_Db manual page.

0 comments voice your opinion now!
mysql prepare query zendframework zenddb


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Book - Chapters 4, 5, 6, 7 and Appendix

Zend Developer Zone: Lifting the Skirt on Zend Framework 1.5: Zend_Auth and the OpenId Adapter

DevShed: Paginating Result Sets for a Search Engine Built with MySQL and PHP 5

Rob Allen's Blog: Zend_View: Access the view from a view helper

Pádraic Brady's Blog: Complex Views with the Zend Framework - Pt 5: The Two-Step View Pattern


Community Events

Don't see your event here?
Let us know!


install conference application podcast composer framework interview introduction opinion api library community php7 performance configure series release symfony2 example laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework