Do not save too big queries in history
This commit is contained in:
@@ -82,6 +82,7 @@ danbarry
|
|||||||
- bug #1959855 [interface] Font size option problem when no config file
|
- bug #1959855 [interface] Font size option problem when no config file
|
||||||
(todo (trunk): navi frame size does not change for theme original)
|
(todo (trunk): navi frame size does not change for theme original)
|
||||||
- bug #1982489 [relation] Relationship view should check for changes
|
- bug #1982489 [relation] Relationship view should check for changes
|
||||||
|
- bug [history] Do not save too big queries in history
|
||||||
|
|
||||||
2.11.7.0 (2008-06-23)
|
2.11.7.0 (2008-06-23)
|
||||||
- bug #1908719 [interface] New field cannot be auto-increment and primary key
|
- bug #1908719 [interface] New field cannot be auto-increment and primary key
|
||||||
|
@@ -1101,7 +1101,8 @@ ALTER TABLE `pma_column_comments`
|
|||||||
<dd>The maximum number of characters when a SQL query is displayed. The
|
<dd>The maximum number of characters when a SQL query is displayed. The
|
||||||
default limit of 1000 should be correct to avoid the display of tons
|
default limit of 1000 should be correct to avoid the display of tons
|
||||||
of hexadecimal codes that represent BLOBs, but some users have real
|
of hexadecimal codes that represent BLOBs, but some users have real
|
||||||
SQL queries that are longer than 1000 characters.</dd>
|
SQL queries that are longer than 1000 characters. Also, if a query's
|
||||||
|
length exceeds this limit, this query is not saved in the history.</dd>
|
||||||
|
|
||||||
<dt id="cfg_OBGzip">$cfg['OBGzip'] string/boolean</dt>
|
<dt id="cfg_OBGzip">$cfg['OBGzip'] string/boolean</dt>
|
||||||
<dd>Defines whether to use GZip output buffering for increased
|
<dd>Defines whether to use GZip output buffering for increased
|
||||||
|
@@ -681,6 +681,10 @@ function PMA_setDbComment($db, $comment = '')
|
|||||||
*/
|
*/
|
||||||
function PMA_setHistory($db, $table, $username, $sqlquery)
|
function PMA_setHistory($db, $table, $username, $sqlquery)
|
||||||
{
|
{
|
||||||
|
if (strlen($sqlquery) > $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
|
|
||||||
if (! isset($_SESSION['sql_history'])) {
|
if (! isset($_SESSION['sql_history'])) {
|
||||||
|
@@ -27,7 +27,6 @@
|
|||||||
* @uses PMA_getRelationsParam()
|
* @uses PMA_getRelationsParam()
|
||||||
* @uses PMA_isValid()
|
* @uses PMA_isValid()
|
||||||
* @uses PMA_ifSetOr()
|
* @uses PMA_ifSetOr()
|
||||||
* @uses PMA_setHistory()
|
|
||||||
* @uses PMA_getHistory()
|
* @uses PMA_getHistory()
|
||||||
* @uses PMA_generate_common_url()
|
* @uses PMA_generate_common_url()
|
||||||
* @uses PMA_generate_common_hidden_inputs()
|
* @uses PMA_generate_common_hidden_inputs()
|
||||||
|
Reference in New Issue
Block a user