bug 826880

This commit is contained in:
Marc Delisle
2003-11-01 16:32:36 +00:00
parent 49d60fae92
commit 2a53725e8b
2 changed files with 6 additions and 1 deletions

View File

@@ -587,7 +587,9 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
if (is_array($row) && isset($row[0]) && $row[0] > 0) {
$maxtime = $row[0];
$remove_rs = PMA_query_as_cu('DELETE FROM ' . PMA_backquote($cfgRelation['history']) . ' WHERE timevalue <= ' . $maxtime);
// quotes added around $maxtime to prevent a difficult to
// reproduce problem
$remove_rs = PMA_query_as_cu('DELETE FROM ' . PMA_backquote($cfgRelation['history']) . ' WHERE timevalue <= "' . $maxtime . '"');
}
return true;