Double quotes are better for SQLs since single quotes inside the SQL need not be escaped.

This commit is contained in:
Madhura Jayaratne 2013-09-22 22:23:54 +05:30
parent ea8324f67f
commit b67aee6cb0

View File

@ -97,9 +97,9 @@ if (true === $cfg['SkipLockedTables']) {
while ($tmp = $GLOBALS['dbi']->fetchRow($db_info_result)) {
if (! isset($sot_cache[$tmp[0]])) {
$sts_result = $GLOBALS['dbi']->query(
'SHOW TABLE STATUS FROM ' . PMA_Util::backquote($db)
. ' LIKE \'' . PMA_Util::sqlAddSlashes($tmp[0], true)
. '\';'
"SHOW TABLE STATUS FROM " . PMA_Util::backquote($db)
. " LIKE '" . PMA_Util::sqlAddSlashes($tmp[0], true)
. "';"
);
$sts_tmp = $GLOBALS['dbi']->fetchAssoc($sts_result);
$GLOBALS['dbi']->freeResult($sts_result);