bug 826880
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-11-01 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* libraries/relation.lib.php3: bug 826880, quotes added
|
||||||
|
|
||||||
2003-10-31 Marc Delisle <lem9@users.sourceforge.net>
|
2003-10-31 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/romanian: Updated, thanks to Valics Lehel.
|
* lang/romanian: Updated, thanks to Valics Lehel.
|
||||||
* tbl_relation.php3: add backquotes around table and field names
|
* tbl_relation.php3: add backquotes around table and field names
|
||||||
|
@@ -587,7 +587,9 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
|
|||||||
|
|
||||||
if (is_array($row) && isset($row[0]) && $row[0] > 0) {
|
if (is_array($row) && isset($row[0]) && $row[0] > 0) {
|
||||||
$maxtime = $row[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;
|
return true;
|
||||||
|
Reference in New Issue
Block a user