summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-11-20 13:28:01 +0100
committermkanat%bugzilla.org <>2006-11-20 13:28:01 +0100
commit9a9708d1d4d4bb542dd96c64bf7c4ccaf83dc65e (patch)
tree3e68f3e7bf0919b03fca2ab5cf538df1841fa2d0 /Bugzilla
parentb4005dc7da0245a2bdeaa0a4d23f3e0565b2cecd (diff)
downloadbugzilla-9a9708d1d4d4bb542dd96c64bf7c4ccaf83dc65e.tar.gz
bugzilla-9a9708d1d4d4bb542dd96c64bf7c4ccaf83dc65e.tar.xz
Bug 361175: [PostgreSQL] Too many "NOTICE" messages from checksetup.pl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB/Pg.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm
index ff596ad0d..f6a520936 100644
--- a/Bugzilla/DB/Pg.pm
+++ b/Bugzilla/DB/Pg.pm
@@ -62,7 +62,11 @@ sub new {
# construct the DSN from the parameters we got
my $dsn = "DBI:Pg:host=$host;dbname=$dbname";
$dsn .= ";port=$port" if $port;
-
+
+ # This stops Pg from printing out lots of "NOTICE" messages when
+ # creating tables.
+ $dsn .= ";options='-c client_min_messages=warning'";
+
my $self = $class->db_new($dsn, $user, $pass);
# all class local variables stored in DBI derived class needs to have