/[SQLSession]/trunk/share/web/templates/fragments/queries
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/share/web/templates/fragments/queries

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 96 by dpavlin, Mon Feb 5 22:13:07 2007 UTC revision 100 by dpavlin, Fri Feb 16 22:21:07 2007 UTC
# Line 1  Line 1 
1  <%args>  <%args>
2  $on_database => undef  $on_database => undef
3  $created_on => undef;  $created_on => undef
4  $order  $order
5    $reformat => 0
6  </%args>  </%args>
7  <%init>  <%init>
8  my $queries = SQLSession::Model::QueryCollection->new();  my $queries = SQLSession::Model::QueryCollection->new();
# Line 93  while (my $q = $date_coll->next) { Line 94  while (my $q = $date_coll->next) {
94          $dates++;       # why is this different from $date_coll->count ?          $dates++;       # why is this different from $date_coll->count ?
95  }  }
96    
97    my $u;
98    if ($reformat) {
99            use SQLSession::Utils qw(reformat_sql);
100            $u = Jifty->app_class('Utils');
101    }
102    
103  </%init>  </%init>
104    
105  <div class="sort">  <div class="sort">
# Line 132  while (my $q = $date_coll->next) { Line 139  while (my $q = $date_coll->next) {
139  % if ($q->note) {  % if ($q->note) {
140          <div class="sql-note"><% $q->note %></div>          <div class="sql-note"><% $q->note %></div>
141  % }  % }
142          <pre class="sql"><% $q->sql_query %></pre>  % my $sql = $q->sql_query;
143    % $sql = $u->reformat_sql( $sql ) if ($reformat);
144            <pre class="sql"><% $sql %></pre>
145          </dd>          </dd>
146  % }  % }
147  </dl>  </dl>

Legend:
Removed from v.96  
changed lines
  Added in v.100

  ViewVC Help
Powered by ViewVC 1.1.26