Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 70844 invoked from network); 14 Apr 2004 20:31:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Apr 2004 20:31:12 -0000 Received: (qmail 40721 invoked by uid 500); 14 Apr 2004 20:30:48 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 40708 invoked by uid 500); 14 Apr 2004 20:30:48 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 40694 invoked from network); 14 Apr 2004 20:30:48 -0000 X-Originating-IP: [160.33.98.118] X-Originating-Email: [mor4321@hotmail.com] X-Sender: mor4321@hotmail.com From: "David Hofmann" To: modperl@perl.apache.org Bcc: Subject: Apache::Session::Postgres Commit on ?? Date: Wed, 14 Apr 2004 16:30:53 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Apr 2004 20:30:54.0157 (UTC) FILETIME=[626A07D0:01C4225F] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N For some reason I keep getting a commit error. commit ineffective with AutoCommit enabled at /usr/lib/perl5/site_perl/5.6.1/Apache/Session/Store/Postgres.pm line 92. Here how I'm tieing, I have tried upper and lowercase on the commit: unless ( eval { tie %sessionHash, 'Apache::Session::Postgres', $sid, { Commit => 0, Handle => $self->{'sql'}}; }) { # warn " (MY::DBSession::_initialize) Invalid session cookie: $@"; tie %sessionHash, 'Apache::Session::Postgres', undef, { Commit => 0, Handle => $self->{'sql'} }; $sid = $sessionHash{_session_id}; } Here my database call: unless ($self->{'sql'}) { # add our all important database connection! $self->{'sql'} = DBI->connect( "dbi:Pg:dbname=sup","usename", "password") or &error('0','EN','CONNECT_SQL','CONNECT_SQL'); } Any ideas ? It's not causing a problem but I hate errors in my log. David _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html