Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disable automatic printing of DBI errors. Fixes bug reported by Tim S…

…mall <tim.at.seoss.co.uk>. Thanks!
  • Loading branch information...
commit f43dc42948ce099a1ecef2bd2d37a2646243964f 1 parent 1b9c824
Kjell-Magne Øierud authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 mysql_
View
5 mysql_
@@ -858,7 +858,8 @@ sub db_connect {
my $dsn = "$config{dsn};mysql_connect_timeout=5";
return DBI->connect($dsn, $config{user}, $config{password}, {
- RaiseError => 1,
+ RaiseError => 1,
+ PrintError => 0,
FetchHashKeyName => 'NAME_lc',
});
}
@@ -1241,6 +1242,8 @@ sub parse_buffer_pool_and_memory {
sub handle_incomplete_innodb_status {
warn "Output from SHOW ENGINE INNDOB STATUS was truncated";
+ # FIX more user friendly warning
+
# Is it possible to find some of the missing values from SHOW
# STATUS?
}
Please sign in to comment.
Something went wrong with that request. Please try again.