[Jifty-commit] r6889 - jifty/trunk/lib/Jifty/Plugin/SQLQueries

Jifty commits jifty-commit at lists.jifty.org
Fri Apr 24 00:12:57 EDT 2009


Author: sartak
Date: Fri Apr 24 00:12:57 2009
New Revision: 6889

Modified:
   jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm

Log:
Don't display bind parameters if there are none

Modified: jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm	Fri Apr 24 00:12:57 2009
@@ -44,9 +44,11 @@
     my ($timestamp, $query, $binds, $duration, $plugins) = @$query_log;
     my $stack_trace = $plugins->{SQLQueryPlugin};
 
-    h3 { "Bind Parameters" }
-    ol {
-        li { $_ } for @$binds;
+    if (@{ $binds || [] }) {
+        h3 { "Bind Parameters" }
+        ol {
+            li { $_ } for @$binds;
+        }
     }
 
     h3 { "Stack Trace" }


More information about the Jifty-commit mailing list