/[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 27 by dpavlin, Mon Dec 4 19:22:48 2006 UTC revision 28 by dpavlin, Thu Dec 7 19:56:41 2006 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',
                 is mandatory,  
24                  ajax validates,                  ajax validates,
25                  ajax canonicalizes;                  ajax canonicalizes,
26                    is mandatory;
27                    
28          param database =>          param database =>
29                  label is 'Database',                  label is '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          warn "canonicalize SQL: $sql";          warn "original SQL:\t$sql";
75    
76          $sql =~ s/\b($w)\b/uc($1)/egis;          $sql =~ s/\b($w)\b/uc($1)/egis;
77    
78            warn "canonicalize SQL:\t$sql";
79    
80          return $sql;          return $sql;
81  }  }
82    

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26