bug fixes
This commit is contained in:
parent
0026b1e73f
commit
0dd6b7b660
12 changed files with 1151 additions and 219 deletions
|
|
@ -440,7 +440,7 @@ sub prepare {
|
|||
my $class = shift;
|
||||
my $sql = shift;
|
||||
my $dbh = shift || _getDefaultDb();
|
||||
if ($WebGUI::Session::session{setting}{showDebug}) {
|
||||
if (WebGUI::ErrorHandler::canShowDebug()) {
|
||||
push(@{$WebGUI::Session::session{SQLquery}},$sql);
|
||||
}
|
||||
my $sth = $dbh->prepare($sql) or WebGUI::ErrorHandler::fatal("Couldn't prepare statement: ".$sql." : ". DBI->errstr);
|
||||
|
|
@ -777,7 +777,7 @@ sub unconditionalRead {
|
|||
my $sql = shift;
|
||||
my $dbh = shift || _getDefaultDb();
|
||||
my $placeholders = shift;
|
||||
if ($WebGUI::Session::session{setting}{showDebug}) {
|
||||
if (WebGUI::ErrorHandler::canShowDebug()) {
|
||||
push(@{$WebGUI::Session::session{SQLquery}},$sql);
|
||||
}
|
||||
my $sth = $dbh->prepare($sql) or WebGUI::ErrorHandler::warn("Unconditional read failed: ".$sql." : ".DBI->errstr);
|
||||
|
|
@ -808,7 +808,7 @@ sub write {
|
|||
my $class = shift;
|
||||
my $sql = shift;
|
||||
my $dbh = shift || _getDefaultDb();
|
||||
if ($WebGUI::Session::session{setting}{showDebug}) {
|
||||
if (WebGUI::ErrorHandler::canShowDebug()) {
|
||||
push(@{$WebGUI::Session::session{SQLquery}},$sql);
|
||||
}
|
||||
$dbh->do($sql) or WebGUI::ErrorHandler::fatal("Couldn't write to the database: ".$sql." : ". DBI->errstr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue