IMP 2.2.6 problems

Brent J. Nordquist bjn@horde.org
Thu, 26 Jul 2001 09:40:16 -0500 (CDT)


Rich (and all), any problems with me committing this patch (reverting the
previous change)?  The log's "might as well" makes me think the previous
change wasn't crucial?

-- 
Brent J. Nordquist <bjn@horde.org> N0BJN
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942

---------- Forwarded message ----------
Date: Wed, 25 Jul 2001 09:08:33 -0500 (CDT)
From: Brent J. Nordquist <bjn@horde.org>
Reply-To: imp@lists.horde.org
To: imp@lists.horde.org
Cc: Daniel Spratlen <spratlen@arches.uga.edu>
Subject: Re: [imp] IMP 2.2.6 problems

On Mon, 23 Jul 2001, Daniel Spratlen <spratlen@arches.uga.edu> wrote:

> Hi, I just downloaded the new rpm's for RH7 for imp 2.2.6 and horde
> 1.2.6.  I use postgresql.  I proformed my upgrade by getting the three
> rpm's that I needed, and then rpm -Uvh *.rpm.  That all went fine, but
> now imp is broken.  Here is what I get:
>
> Warning: 1 is not a valid PostgreSQL link resource in
> /var/www/horde-phplib/db_pgsql.inc on line 52

I've reproduced this here.  Turns out this is not an RPM issue; it's
imp/lib/db.pgsql rev 1.1.2.4 from IMP 2.2.5; when I revert that change the
problem goes away.

Try making the following 1-byte change and see if it fixes it for you
also, and if so I'll commit it.

--- db.pgsql.orig	Sat Feb  3 21:46:59 2001
+++ db.pgsql	Wed Jul 25 08:55:24 2001
@@ -263,7 +263,7 @@
 	};

 	/* echo "dbconnectstring='$dbconnectstring'" ; /* for debugging */
-	return (($db = pg_connect($dbconnectstring))) ;
+	return (($db = pg_pconnect($dbconnectstring))) ;
 }

 ?>

-- 
Brent J. Nordquist <bjn@horde.org> N0BJN
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942



-- 
IMP mailing list: http://horde.org/imp/
Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org