/[SQLSession]/trunk/lib/SQLSession/Action/DoSQL.pm
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/lib/SQLSession/Action/DoSQL.pm

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

revision 34 by dpavlin, Thu Dec 7 23:14:57 2006 UTC revision 35 by dpavlin, Wed Jan 17 17:24:32 2007 UTC
# Line 21  use Jifty::Action schema { Line 21  use Jifty::Action schema {
21          param sql_query =>          param sql_query =>
22                  label is 'SQL',                  label is 'SQL',
23                  render as 'textarea',                  render as 'textarea',
24  #               ajax validates,                  ajax validates,
25  #               ajax canonicalizes,                  ajax canonicalizes,
26                  is mandatory;                  is mandatory;
27                    
28          param database =>          param database =>
# Line 71  sub canonicalize_sql_query { Line 71  sub canonicalize_sql_query {
71    
72          my $w = join('|', @words);          my $w = join('|', @words);
73    
74            $w .= '|limit|offset';  # fixup
75    
76          warn "original SQL:\t$sql";          warn "original SQL:\t$sql";
77    
78          $sql =~ s/\b($w)\b/uc($1)/egis;          $sql =~ s/\b($w)\b/uc($1)/egis;

Legend:
Removed from v.34  
changed lines
  Added in v.35

  ViewVC Help
Powered by ViewVC 1.1.26