diff --git a/ChangeLog b/ChangeLog index 8774fad47..236295c32 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,14 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-04-06 Garvin Hicking + * header.inc.php3, footer.inc.php3, libraries/common.lib.php3, + libraries/relation.lib.php3: RFE #715914: Sort query history by + (autoincrement) key instead of timevalue. Only save queries in + history if they were successful. This required the moving of + the JS-stuff in header.inc.php3 to footer.inc.php3. Please + test, if this works for everyone. It does for me. + 2003-04-06 Alexander M. Turek * db_datadict.php3: The result of SHOW INDEX does not have a 'Comment' column before MySQL 3.23 (bug #712055). diff --git a/footer.inc.php3 b/footer.inc.php3 index 029ea4fd0..7b68ddb6f 100755 --- a/footer.inc.php3 +++ b/footer.inc.php3 @@ -5,6 +5,68 @@ // In this file you may add PHP or HTML statements that will be used to define // the footer for phpMyAdmin pages. +/** + * Query window + */ + +// If query window is wanted and open, update with latest selected db/table. +if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { +?> + + - - diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index f2a092490..a69f480ff 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -409,7 +409,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} $is_modify_link = TRUE, $back_url = '', $exit = TRUE) { - global $cfg; + global $cfg, $table, $db, $sql_query; if (empty($GLOBALS['is_header_sent'])) { include('./header.inc.php3'); diff --git a/libraries/relation.lib.php3 b/libraries/relation.lib.php3 index b86fdd14f..4448d0656 100644 --- a/libraries/relation.lib.php3 +++ b/libraries/relation.lib.php3 @@ -511,7 +511,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){ . PMA_backquote('db') . ',' . PMA_backquote('table') . ',' . PMA_backquote('sqlquery') - . ' FROM ' . PMA_backquote($cfgRelation['history']) . ' WHERE username = \'' . PMA_sqlAddslashes($username) . '\' ORDER BY timevalue DESC'); + . ' FROM ' . PMA_backquote($cfgRelation['history']) . ' WHERE username = \'' . PMA_sqlAddslashes($username) . '\' ORDER BY id DESC'); $history = array();