-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.0.0-a1
-
None
Attempt to use non-PDO Doctrine driver causes installer to fail with error:
Uncaught Exception: An exception occurred while executing a query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':lang_iso, :lang_dir, :lang_english_name, :lang_local_name, :lang_author)'
|
The issue is that original query string uses named parameters which only comply with PDO:
$sql = 'INSERT INTO ' . $this->lang_table . ' (lang_iso, lang_dir, lang_english_name, lang_local_name, lang_author)' . ' VALUES (:lang_iso, :lang_dir, :lang_english_name, :lang_local_name, :lang_author)';
|
Actually this issue doesn't affect the current code as the core for now uses only pdo_* Doctrine drivers. To make it compatible with any kind of drivers, question marks should be used instead:
$sql = 'INSERT INTO ' . $this->lang_table . ' (lang_iso, lang_dir, lang_english_name, lang_local_name, lang_author)' . ' VALUES (?, ?, ?, ?, ?)';
|