make SQL queries work again
This commit is contained in:
parent
e1b42d2970
commit
cb5e059b2e
1 changed files with 2 additions and 1 deletions
|
|
@ -115,8 +115,9 @@ An array reference containing a list of values to be used in the placeholders de
|
||||||
|
|
||||||
sub execute {
|
sub execute {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
my $placeholders = shift || [];
|
||||||
my $sql = $self->{_sql};
|
my $sql = $self->{_sql};
|
||||||
$self->sth->execute(shift||[]) or $self->db->session->errorHandler->fatal("Couldn't execute prepared statement: $sql Root cause: ". $self->errorMessage);
|
$self->sth->execute(@{ $placeholders }) or $self->db->session->errorHandler->fatal("Couldn't execute prepared statement: $sql Root cause: ". $self->errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue