Simply as the tittle says. I can’t find an api, documentation nor examples of the exec() api in the getConnection method of the Zend_Db_Adapter_Abstract class.
What’s the output of a valid/invalid sql script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on what adapter you are using. If you are using
Pdothen you are simply callingPDO::exec()when you callZend_Db_Adapter_Abstract->getConnection()->exec().Zend_Db_Adapter_Abstract->getConnection()returns the underlying database connection resource from PHP. In the case of PDO it is what is returned by callingnew PDO(). If you were using Mysqli, then it is the result of callingnew Mysqli()(Mysqli doesn’t have anexec()method though).