From owner-freebsd-ports Wed Apr 18 18:46:13 2001 Delivered-To: freebsd-ports@freebsd.org Received: from mobile.hub.org (SHW39-29.accesscable.net [24.138.39.29]) by hub.freebsd.org (Postfix) with ESMTP id 87ED837B424 for ; Wed, 18 Apr 2001 18:46:09 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by mobile.hub.org (8.11.3/8.11.1) with ESMTP id f3J1k8Q65269 for ; Wed, 18 Apr 2001 22:46:08 -0300 (ADT) (envelope-from scrappy@hub.org) X-Authentication-Warning: mobile.hub.org: scrappy owned process doing -bs Date: Wed, 18 Apr 2001 22:46:07 -0300 (ADT) From: The Hermit Hacker To: Subject: p5-DBD-Pg .. if anyone is upgrading that? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org If someone is planning on upgrading DBD-Pg, and hasn't seen this ... Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org ---------- Forwarded message ---------- Date: Wed, 18 Apr 2001 21:38:54 -0400 (EDT) From: Brett W. McCoy To: Glen Eustace Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Problems with new DBD On Thu, 19 Apr 2001, Glen Eustace wrote: > I have just upgraded to the new DBD, but am still using postgresql 7.0.3 > > I am now getting access errors. I have had to go back into the db and > GRANT ALL on to PUBLIC as a work around. > > Even though I have specified a userid and password on the DBI->connect, > Pg seems to be using the actual user. > > NB: I didn't change any of my code, just upgraded to DBD 0.96, I have > since upgraded to DBI 1.15 but that hasn't helped. There's a bug in Pg::DBD 0.96. Here's the patch: *** DBD-Pg-0.96/Pg.pm-orig Tue Apr 10 03:44:18 2001 --- DBD-Pg-0.96/Pg.pm Sun Apr 15 10:26:16 2001 *************** *** 79,89 **** $Name =~ s/^.*dbname\s*=\s*//; $Name =~ s/\s*;.*$//; ! $user = "" unless defined($user); ! $auth = "" unless defined($auth); ! ! $user = $ENV{DBI_USER} unless $user eq ""; ! $auth = $ENV{DBI_PASS} unless $auth eq ""; my($dbh) = DBI::_new_dbh($drh, { 'Name' => $Name, --- 79,88 ---- $Name =~ s/^.*dbname\s*=\s*//; $Name =~ s/\s*;.*$//; ! $user ||= $ENV{DBI_USER}; ! $auth ||= $ENV{DBI_PASS}; ! $user ||= ""; ! $auth ||= ""; my($dbh) = DBI::_new_dbh($drh, { 'Name' => $Name, http://www.chapelperilous.net/btfwk/ ------------------------------------------------------------------------ It's amazing how many people you could be friends with if only they'd make the first approach. ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message