more bug fixes

This commit is contained in:
JT Smith 2006-01-14 22:32:26 +00:00
parent 3c66a9105f
commit 7aede0fcb7
2 changed files with 3 additions and 3 deletions

View file

@ -591,7 +591,7 @@ sub read {
my $self = shift;
my $sql = shift;
my $placeholders = shift;
return WebGUI::SQL::ResultSet->read($sql,$self);
return WebGUI::SQL::ResultSet->read($sql, $self, $placeholders);
}
@ -690,7 +690,7 @@ sub unconditionalRead {
my $self = shift;
my $sql = shift;
my $placeholders = shift;
return WebGUI::SQL::ResultSet->unconditionalRead($sql, $self);
return WebGUI::SQL::ResultSet->unconditionalRead($sql, $self, $placeholders);
}

View file

@ -198,7 +198,7 @@ sub prepare {
my $db = shift;
$db->session->errorHandler->debug("query: ".$sql);
my $sth = $db->dbh->prepare($sql) or $db->session->errorHandler->fatal("Couldn't prepare statement: ".$sql." : ". $db->dbh->errstr);
bless ({_sth => $sth, _sql => $sql, _db=>$db}, $class);
bless {_sth => $sth, _sql => $sql, _db=>$db}, $class;
}