Skip to content

Commit

Permalink
$sth is not needed for _insert_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Nov 24, 2010
1 parent 492a4ce commit 4186811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Jonk/Client.pm
Expand Up @@ -26,7 +26,7 @@ sub enqueue {
local $self->{dbh}->{PrintError} = 0;
my $sth = $self->{dbh}->prepare_cached($self->{enqueue_query});
$sth->execute($func, $arguments->{arg}, $arguments->{time});
$job_id = $self->_insert_id($self->{dbh}, $sth);
$job_id = $self->_insert_id($self->{dbh});
$sth->finish;
} catch {
Carp::carp("can't enqueue for job queue database: $_");
Expand All @@ -36,7 +36,7 @@ sub enqueue {
}

sub _insert_id {
my ($self, $dbh, $sth) = @_;
my ($self, $dbh) = @_;

my $driver = $dbh->{Driver}{Name};
if ( $driver eq 'mysql' ) {
Expand Down

0 comments on commit 4186811

Please sign in to comment.