1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-20 12:51:40 +02:00

DibiProfiler: added [explain] info

This commit is contained in:
David Grudl
2010-04-04 02:57:43 +02:00
parent 57b68131e6
commit 52e5d43416
4 changed files with 77 additions and 51 deletions

View File

@@ -705,7 +705,7 @@ class dibi
$sql = wordwrap($sql, 100);
$sql = htmlSpecialChars($sql);
$sql = preg_replace("#\n{2,}#", "\n", $sql);
$sql = preg_replace("#([ \t]*\r?\n){2,}#", "\n", $sql);
// syntax highlight
$sql = preg_replace_callback("#(/\\*.+?\\*/)|(\\*\\*.+?\\*\\*)|(?<=[\\s,(])($keywords1)(?=[\\s,)])|(?<=[\\s,(=])($keywords2)(?=[\\s,)=])#is", array('dibi', 'highlightCallback'), $sql);