Permalink
Browse files

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

…mall <tim.at.seoss.co.uk>. Thanks!
  • Loading branch information...
1 parent 1b9c824 commit f43dc42948ce099a1ecef2bd2d37a2646243964f Kjell-Magne Øierud committed Jun 12, 2009
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?
}

0 comments on commit f43dc42

Please sign in to comment.