projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee8ea28
)
correct SQL reformating
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 7 Apr 2011 20:28:05 +0000
(22:28 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 7 Apr 2011 20:28:05 +0000
(22:28 +0200)
web_ui.pl
patch
|
blob
|
history
diff --git
a/web_ui.pl
b/web_ui.pl
index
eb08d1d
..
2768f27
100755
(executable)
--- a/
web_ui.pl
+++ b/
web_ui.pl
@@
-82,7
+82,7
@@
get '/gnuplot' => sub {
return $self->render('gnuplot', img => '', gnuplot => '') unless $sql;
# re-format SQL
- $sql =~ s/(from|where|order|limit|join)/\n$1/gs;
+ $sql =~ s/
\s+
(from|where|order|limit|join)/\n$1/gs;
$self->param( sql => $sql );
my $ret = $gearman->req( 'SUBMIT_JOB', 'Store_sql', '', $sql );