]> git.joonet.de Git - adminer.git/commitdiff
Prolong printed SQL query
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 24 Sep 2009 10:07:25 +0000 (10:07 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 24 Sep 2009 10:07:25 +0000 (10:07 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1139 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/sql.inc.php

index 68b25601fbe143413741694b451e4d4a1e118c07..52beaded08cba05900eed41337ccdaeefa88d3a6 100644 (file)
@@ -55,7 +55,7 @@ if (!$error && $_POST) {
                                        if (!$found || $found == $delimiter) { // end of a query
                                                $empty = false;
                                                $q = substr($query, 0, $match[0][1]);
-                                               echo "<pre class='jush-sql'>" . shorten_utf8(trim($q)) . "</pre>\n";
+                                               echo "<pre class='jush-sql'>" . shorten_utf8(trim($q), 1000) . "</pre>\n";
                                                ob_flush();
                                                flush(); // can take a long time - show the running query
                                                $start = explode(" ", microtime()); // microtime(true) is available since PHP 5