Run an unprepared statement with Zend Db

Jozef

New Member
I am trying to use a LOAD DATA INFILE statement with a ZF 1.10.6 application. However, the Mysqli adapter reports that \[quote\] Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: This command is not supported in the prepared statement protocol yet in /xxx/library/Zend/Db/Statement/Mysqli.php on line 77\[/quote\]So I can't use this feature with prepared statements. However the \[code\]Zend_Db_Adapter_Abstract\[/code\] creates a statement each time it queries the DB.There is a bug filed in here about this issue:http://zendframework.com/issues/browse/ZF-1398It seems I can get the DB connection from the object directly with \[code\]Zend_Db_Adapter_Abstract::getConnection()\[/code\] however I find it a bit raw.I was wondering if someone found an acceptable workaround to this problem?
 
Back
Top