Skip to content

Commit

Permalink
fixed a bug in set code
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Carroll committed Jun 18, 2010
1 parent 95ce1a4 commit e394611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bdshell
Expand Up @@ -94,7 +94,8 @@ while ( my $input = ( $command || <$io> ) ) {

sub process_action_set {
my $sql = shift;
$dbh->do( sprintf( 'SET %s = %s', map s/;.*//, $sql->{key}, $sql->{value} ) );
s/;.*// for $sql->{key}, $sql->{value};
$dbh->do( sprintf( 'SET %s = %s', $sql->{key}, $sql->{value} ) );
}

sub process_action_echo {
Expand Down

0 comments on commit e394611

Please sign in to comment.