Prolong printed SQL query to 10000 characters (fix #1186)

This commit is contained in:
Jakub Vrana
2025-10-27 15:05:38 +01:00
parent 489f78c21c
commit 57c5370c67
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
## Adminer dev
- Autocomplete: fix in empty textarea (bug #1173)
- Prolong printed SQL query to 10000 characters (bug #1186)
- MySQL: Use information_schema to get routine definition (bug #1179)
- PostgreSQL: Mark unique partial indexes as unique (bug #1172)
- ClickHouse: Fix offset (bug #1188)

View File

@@ -674,7 +674,7 @@ class Adminer {
$return = "<a href='#$id' class='toggle'>" . lang('Warnings') . "</a>, $return<div id='$id' class='hidden'>\n$warnings</div>\n";
}
return " <span class='time'>" . @date("H:i:s") . "</span>" // @ - time zone may be not set
. " $return<div id='$sql_id' class='hidden'><pre><code class='jush-" . JUSH . "'>" . shorten_utf8($query, 1000) . "</code></pre>"
. " $return<div id='$sql_id' class='hidden'><pre><code class='jush-" . JUSH . "'>" . shorten_utf8($query, 1e4) . "</code></pre>"
. ($time ? " <span class='time'>($time)</span>" : '')
. (support("sql") ? '<p><a href="' . h(str_replace("db=" . urlencode(DB), "db=" . urlencode($_GET["db"]), ME) . 'sql=&history=' . (count($history[$_GET["db"]]) - 1)) . '">' . lang('Edit') . '</a>' : '')
. '</div>'