when saving an edit with a field of more than 1000 characters, constant PMA_QUERY_TOO_BIG is already defined

This commit is contained in:
Marc Delisle
2007-06-24 10:14:08 +00:00
parent 326b141485
commit 6bc959283f

View File

@@ -1046,7 +1046,7 @@ function PMA_showMessage($message, $sql_query = null)
}
$max_characters = 1000;
if (strlen($query_base) > $max_characters) {
if (! defined('PMA_QUERY_TOO_BIG') && strlen($query_base) > $max_characters) {
define('PMA_QUERY_TOO_BIG',1);
}