Commit 9108eff3 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Allow DBDo() to take parameters, this fixes bugs with all queries utilizing ?'s as placeholders

- Thanks Peter Kiem
parent a0387e35
......@@ -116,13 +116,13 @@ sub DBSelect
# Args: <command statement>
sub DBDo
{
my $command = shift;
my ($command,@params) = @_;
# Prepare query
my $sth;
if (!($sth = $dbh->do($command))) {
setError("Error executing command: ".$dbh->Error());
if (!($sth = $dbh->do($command,@params))) {
setError("Error executing command '$command': ".$dbh->Error());
return undef;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment