/[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 28 by dpavlin, Thu Dec 7 19:56:41 2006 UTC revision 29 by dpavlin, Thu Dec 7 22:13:56 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',
24                  ajax validates,  #               ajax validates,
25                  ajax canonicalizes,  #               ajax canonicalizes,
26                  is mandatory;                  is mandatory;
27                    
28          param database =>          param database =>
# Line 91  sub take_action { Line 91  sub take_action {
91            
92      # Custom action code      # Custom action code
93    
94          my $database = $self->argument_value('database');          my $database = $self->argument_value('database') || $self->form_value('database');
95          warn "database: $database\n";          warn "database: $database\n";
96    
97          my $db = SQLSession::Model::Database->new;          my $db = SQLSession::Model::Database->new;

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

  ViewVC Help
Powered by ViewVC 1.1.26