// added list of tables and attributes in AdminRequestSqlController + change export request

This commit is contained in:
lLefevre
2011-11-30 13:24:43 +00:00
parent 885701b27a
commit db3feb8df4
3 changed files with 98 additions and 21 deletions
+2 -2
View File
@@ -401,10 +401,10 @@ abstract class DbCore
$sql = (string)$sql;
// This methode must be used only with queries which display results
if (!preg_match('#^\s*(select|show|explain)\s#i', $sql))
if (!preg_match('#^\s*(select|show|explain|describe)\s#i', $sql))
{
if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)
throw new PrestashopDatabaseException('Db->executeS() must be used only with select, show or explain queries');
throw new PrestashopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
return $this->execute($sql, $use_cache);
}