Re: DBI::ProfileDumper::Apache, $DBI::err and segfaults?

2009-11-04 Thread E R
I should have mentioned that I'm using it with DBD::Oracle against an 11.2 database. On Wed, Nov 4, 2009 at 3:58 PM, E R wrote: > Hi, > > I am seeing segfaults when accessing $DBI::err and using the following: > > - DBI version 1.51 > - DBI::ProfileDump::Apache > - mod-perl 1.3.41 > - perl 5.8.9

DBI::ProfileDumper::Apache, $DBI::err and segfaults?

2009-11-04 Thread E R
Hi, I am seeing segfaults when accessing $DBI::err and using the following: - DBI version 1.51 - DBI::ProfileDump::Apache - mod-perl 1.3.41 - perl 5.8.9 Is this a known issue? It's in a rather large mod-perl app, but I'll see if I can create a small test case. Merely accessing $DBI::err causes

help debugging DBIx::Interp / Apache::DBI / mod_perl bug

2009-05-29 Thread Mark Stosberg
7;t locate object method "selectcol_arrayref_i" via package "Apache::DBI::db" The method name is not the issue, it's the name space being searched. This method is part of DBIx::Interp. Maybe there is an easy bug in the new() or connect() methods of DBIx::Interp, so I'

Apache::DBI/AutoCommit error

2006-09-01 Thread Ryan Perry
I sometimes get: DBD driver has not implemented the AutoCommit attribute at /usr/local/lib/perl5/site_perl/5.8.8/Apache/DBI.pm line 277. On my HTML::Mason site. I'm using Apache 2.2/mod_perl 2. I list PerlModule Apache::DBI before any other perl modules. I connect with AutoCommit

Re: Apache::DBI and DBD::Pg

2006-01-17 Thread Tim Bunce
On Mon, Jan 16, 2006 at 12:42:10PM -0800, Tyler MacDonald wrote: > Jeremy Nixon <[EMAIL PROTECTED]> wrote: > > It looks like it would work perfectly with connect_cached, which I hadn't > > known about, but now that I do, I'm all excited to change my code to us

Re: Apache::DBI and DBD::Pg

2006-01-16 Thread Tyler MacDonald
Jeremy Nixon <[EMAIL PROTECTED]> wrote: > It looks like it would work perfectly with connect_cached, which I hadn't > known about, but now that I do, I'm all excited to change my code to use > it instead of Apache::DBI. *instead*, eh... I'm using it as wel

Re: Apache::DBI and DBD::Pg

2006-01-15 Thread Tim Bunce
> Here's the thing: if your database connection goes away, and Apache::DBI > opens a new one, any prepared statement handles you might have become > invalid, because prepared statements are per-connection. > > My way around it is to not use prepared statements. Another, be

Re: Apache::DBI and DBD::Pg

2006-01-14 Thread Jeremy Nixon
Tyler MacDonald <[EMAIL PROTECTED]> wrote: > [Fri Jan 13 23:46:28 2006] [error] [client 192.168.99.112] DBD::Pg::db > prepare_cached failed: FATAL: terminating connection due to administrator Here's the thing: if your database connection goes away, and Apache::DBI opens a new

Apache::DBI and DBD::Pg

2006-01-13 Thread Tyler MacDonald
Apache::DBI claims that it will reconnect to a database if it's gone away. DBD::Pg claims that it supports the ping method. However, when I restart my database server while apache2 is running, all mod_perl pages that are database driven return internal server errors, no matter how many ti

Apache::DBI::Cache

2005-12-12 Thread Tim Bunce
Has anyone got any experience with Apache::DBI::Cache that they might like to share? Tim. http://search.cpan.org/~opi/Apache-DBI-Cache/

intermittent wierd error with Apache::DBI and MySQL

2005-11-22 Thread Badai Aqrandista
n they happen in the critical part of the booking process, it caused bad things to happen. I suspected this could be because Apache::DBI connect to the server when apache is started, but I read somewhere that it connects on 'init' stage. So, how do I debug it? I have no idea of how

Re: Apache-DBI

2005-11-08 Thread Philip M. Gollucci
Paul Harrison wrote: p5-DBD-mysql50-3.0002 p5-DBI-1.48 p5-Apache-DBI-0.94_1 [Tue Nov 8 10:41:04 2005] DBI.pm: Use of uninitialized value in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line 211. [Tue Nov 8 10:41:04 2005] startup.perl: Use of uninitialized value in

Apache-DBI

2005-11-08 Thread Paul Harrison
p5-DBD-mysql50-3.0002 p5-DBI-1.48 p5-Apache-DBI-0.94_1 I upgraded the database server from the "4" version to "5", so I updated the Perl database Drivers -> DBD,DBI, and Apache-DBI. Once I updated the software, I get the following text in the Apache error log -->

Re: Disabling Apache::DBI

2005-10-26 Thread Philip M. Gollucci
Ted Behling wrote: Could somebody verify that this is a sane and future-proof approach? I can't speak about the future of DBI, but your reading of the current source code is correct. -- END What doesn't kill us can only make us

Re: Disabling Apache::DBI

2005-10-22 Thread Tim Bunce
On Fri, Oct 21, 2005 at 12:57:19PM -0400, Ted Behling wrote: > I have multiple mod_perl applications running within one Apache instance. > For most of these applications, I want to use Apache::DBI, but I want to > disable it for just one. According to various Web pages, this is not &

Disabling Apache::DBI

2005-10-21 Thread Ted Behling
I have multiple mod_perl applications running within one Apache instance. For most of these applications, I want to use Apache::DBI, but I want to disable it for just one. According to various Web pages, this is not possible, because Apache::DBI attaches itself to all DBI->connect() calls.

Re: Unexpected Transaction Commit in DBI / Apache::DBI

2005-01-25 Thread Tim Bunce
: > > Perl 5.8.0 > DBI 1.46 > DBD::ODBC 1.13 > Apache::DBI 0.94 > > The RDBMS is Mimer 8.2.5G (www.mimer.com), connecting via unixODBC 2.2.0. > > I get an unexpected transaction commit in the following example script: > > $dbh = DBI->connect('dbi:ODBC:myd

Unexpected Transaction Commit in DBI / Apache::DBI

2005-01-24 Thread Mark Edwards
I have been experiencing some problems with the following configuration: Solaris 5.7 on a Sun Ultra-250, running Apache 2.0.48, mod_perl 1.9913 (built as DSO) I'm using the following perl modules: Perl 5.8.0 DBI 1.46 DBD::ODBC 1.13 Apache::DBI 0.94 The RDBMS is Mimer 8.2.5G (www.mime

Re: Apache::DBI usage

2005-01-08 Thread amonotod
> From: angie ahl <[EMAIL PROTECTED]> > Date: 2005/01/07 Fri PM 01:45:59 CST > Is PerlSetVar the best way to pass values from httpd.conf to perl securely? > Do I need to open/close the connection in each of the modules too or > can I pass the $dbh object to each of my external subroutines, or is >

Apache::DBI usage

2005-01-07 Thread angie ahl
Hi DBI using people can anyone tell me whether the following will work. I've got myself all confused over persistency (of every kind). I'm using Mod_perl and apache (1.3) I have a httpd.conf containing PerlSetVar for the DB's datasource, username and password. I get these values in my perl module

Re: DBD::DB2 and Apache::DBI problem

2004-09-24 Thread Dan Scott
ricardo Guerra Flores wrote: Hi all... i'm having some problems trying to run a script that uses DBD::DB2 inside mod_perl and the Apache::DBI module, the program runs right when i execute it as a stand alone perl program. I've already set the ENV for db2home, db2instance, etc. in start

DBD::DB2 and Apache::DBI problem

2004-09-22 Thread ricardo Guerra Flores
Hi all... i'm having some problems trying to run a script that uses DBD::DB2 inside mod_perl and the Apache::DBI module, the program runs right when i execute it as a stand alone perl program. I've already set the ENV for db2home, db2instance, etc. in startup.pl This is the

Re: Apache::DBI and caching confusion...

2004-09-13 Thread Henri Asseily
On Sep 13, 2004, at 8:30 AM, Martin Moss wrote: All, I'm trying to understand the Apache::DBI mechanism which caches and returns $dbh handles. My concern is that Apache DBI uses the connection options, like AutoCommit=>1 as part of it's caching 'key' mechanism. Yes it does,

Apache::DBI and caching confusion...

2004-09-13 Thread Martin Moss
All, I'm trying to understand the Apache::DBI mechanism which caches and returns $dbh handles. My concern is that Apache DBI uses the connection options, like AutoCommit=>1 as part of it's caching 'key' mechanism. Thus would I be right in thinking that if I create a $dbh w

Re: Connection timeout when using Apache::DBI in mod_perl

2004-09-08 Thread Henri Asseily
On Sep 8, 2004, at 3:04 AM, Bart Lateur wrote: Is there anything foreseen to disconnect a DBI connection, in a mod_perl (2) setup with Apache::DBI, in case nothing has been requested in several minutes time? Do the connections stay open forever, or does the database timeout all by itself? (I

Re: Connection timeout when using Apache::DBI in mod_perl

2004-09-08 Thread Michael Peppler
On Wed, 2004-09-08 at 12:04, Bart Lateur wrote: > Is there anything foreseen to disconnect a DBI connection, in a mod_perl > (2) setup with Apache::DBI, in case nothing has been requested in > several minutes time? Do the connections stay open forever, or does the > database timeout a

Connection timeout when using Apache::DBI in mod_perl

2004-09-08 Thread Bart Lateur
Is there anything foreseen to disconnect a DBI connection, in a mod_perl (2) setup with Apache::DBI, in case nothing has been requested in several minutes time? Do the connections stay open forever, or does the database timeout all by itself? (I suspect it does, anyway) The only thing I see in

Re: Apache, DBI, Oracle

2004-06-17 Thread David
On Wed, Jun 16, 2004 at 12:00:32PM -0700, Kevin Moore wrote: > Does anyone have a step by step procedure for configuring apache, > mod_perl, and DBI for accessing an oracle database they'd be willing to > share? First make sure you can run any script (Perl or otherwise) from the location you are

RE: Apache, DBI, Oracle

2004-06-16 Thread Fong, Anna
owser. This is not a DBI issue per se, so if you'd like to continue off-line, feel free to contact me directly. -Original Message- From: Reidy, Ron [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:08 PM To: Kevin Moore; [EMAIL PROTECTED] Subject: RE: Apache, DBI, Oracle

RE: Apache, DBI, Oracle

2004-06-16 Thread Reidy, Ron
01 PM To: [EMAIL PROTECTED] Subject: Apache, DBI, Oracle Experts, Does anyone have a step by step procedure for configuring apache, mod_perl, and DBI for accessing an oracle database they'd be willing to share? I've got Oracle and a simple perl script using dbi to extract data f

Apache, DBI, Oracle

2004-06-16 Thread Kevin Moore
Experts, Does anyone have a step by step procedure for configuring apache, mod_perl, and DBI for accessing an oracle database they'd be willing to share? I've got Oracle and a simple perl script using dbi to extract data from a database running from the command line but am receiving "server Err

Re: Apache::DBI persistent connections

2004-05-20 Thread Rudy Lippan
On 20 May 2004, Keith Jackson wrote: > Why is there another connection each time I reload the page? Any help > would be appreciated. Because you have more than 1 apache process. Each httpd process can cache a connexion handle to each of the databases that it uses. So if you have Max Clients set

Apache::DBI persistent connections

2004-05-20 Thread Keith Jackson
I have a development server that I am the only one using it at the moment. I've installed mod_perl (not 2.0) and Apache::DBI. Using MySQL, I do a show processlist and there are no processes. I hit a page that requests data from MySQL. Processlist shows one process. I reload that same pag

(Fwd) Oracle / Apache::DBI connection problems

2004-05-18 Thread Tim Bunce
[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Oracle / Apache::DBI connection problems This is a forward since the original message bounced. Figured it would, the address was 5 years old. :^) - Forwarded message from "Hartog C. de Mik" <[EMAIL PROTECTED]> - From: &

Apache::DBI losing connection

2004-02-14 Thread Michael L. Artz
I'm running a web application under Apache2/mod_perl2 using PostgreSQL as a backend and DBI/Apache::DBI to connect to it. I'm still in development of the system, so I have a couple of pages with invalid SQL on them. The problem is that, once I go to one of these pages with invalid

Apache::DBI error

2003-08-14 Thread Greg.Hering
I'm trying to update my Perl installation. It says a new Apache::DBI is out; 0.92. I've tried changing LANG from 'en_US.UTF-8' to 'en_US' and also just 'C' as I've seen that help before. I ran t/10mysql.t manually and it says it's faili

RE: Question regarding Apache::DBI

2003-07-28 Thread Igor Korolev
Can you put commit/rollback's into the END block ? -Original Message- From: Steve Baldwin [mailto:[EMAIL PROTECTED] Sent: Sunday, July 27, 2003 8:02 PM To: [EMAIL PROTECTED] Subject: Question regarding Apache::DBI We're using Apache::DBI and running into problems with Ap

Question regarding Apache::DBI

2003-07-27 Thread Steve Baldwin
We're using Apache::DBI and running into problems with Apache child processes not releasing locks. My current theory for how this happens goes something like this ... (Our DB is Oracle if that's relevant) script issues an update which is successful, and locks the updated row does o

Problems install Apache::DBI from CPAN.

2003-06-10 Thread Albert E. Whale, CISSP
I have encountered an installation problem with the Apache::DBI module (version 0.91) from CPAN. I am running Linux Mandrake 9.1 with Perl 5.8.0 and CPAN version 1.70 cpan> install Apache::DBI Running install for module Apache::DBI Running make for A/AB/ABH/Apache-DBI-0.91.tar.gz CPAN: Dig

Apache::DBI fails test and install

2003-06-09 Thread Albert E. Whale, CISSP
This help request was originally sent to the Perl5-porters list, which has directed me here. Michael G Schwern wrote: >On Sat, Jun 07, 2003 at 11:37:16PM -0400, Albert E. Whale, CISSP wrote: > > >>I am installing the Apache-DBI-0.91 on a Linux Mandrake 9.1 server wi

Re: Problem with DBD::Proxy and Apache::DBI

2003-01-15 Thread Tim Bunce
On Mon, Jan 13, 2003 at 02:08:12PM -0500, Bob Showalter wrote: > I'm using Apache::DBI under mod_perl to manage connections to a remote > database using DBD::Proxy. My problem is that Apache::DBI is not properly > issuing a rollback to DBD::Proxy handles in the PerlCleanupHan

Problem with DBD::Proxy and Apache::DBI

2003-01-13 Thread Bob Showalter
I'm using Apache::DBI under mod_perl to manage connections to a remote database using DBD::Proxy. My problem is that Apache::DBI is not properly issuing a rollback to DBD::Proxy handles in the PerlCleanupHandler. The relevant section from Apache/DBI.pm is (in sub cleanup): if ($Rollback

Apache::DBI vs. mod_perl vs. CGI::Fast

2002-10-08 Thread Thomas Hilbig
I recently started using CGI::Fast along with caching DBI connections to speed up DBI-based web pages. I choose CGI::Fast over mod_perl it does not tie me to any one webservers (although I do love my Apache!). For persistent servers/DBI connections, is there any reasons why someone would choos

Re: DBI->connect_cached not playing with Apache::DBI

2002-08-19 Thread Tim Bunce
On Fri, Aug 16, 2002 at 04:07:52PM -0700, Michael G Schwern wrote: > On Tue, Aug 13, 2002 at 10:22:35PM +0100, Tim Bunce wrote: > > > > But how about a new method: > > > > > > > > DBI->connect_method("connect"); > > > > DBI-

Re: DBI->connect_cached not playing with Apache::DBI

2002-08-16 Thread Michael G Schwern
On Tue, Aug 13, 2002 at 10:22:35PM +0100, Tim Bunce wrote: > > > But how about a new method: > > > > > > DBI->connect_method("connect"); > > > DBI->connect_method("Apache::DBI::connect"); # effectively what "use

Re: DBI->connect_cached not playing with Apache::DBI

2002-08-13 Thread Tim Bunce
> > But how about a new method: > > > > DBI->connect_method("connect"); > > DBI->connect_method("Apache::DBI::connect"); # effectively what "use >Apache::DBI;" does now > > DBI->connect_method("connect_cached&quo

Re: DBI->connect_cached not playing with Apache::DBI

2002-08-12 Thread Michael G Schwern
On Mon, Aug 12, 2002 at 07:56:57AM +0100, Tim Bunce wrote: > They (slightly) have different semantics so I'd be reluctant to > transparently substitute one for another. Fair nuff. > But how about a new method: > > DBI->connect_method("connect"); > DBI-&

Re: DBI->connect_cached not playing with Apache::DBI

2002-08-11 Thread Tim Bunce
On Fri, Aug 09, 2002 at 01:47:55AM -0700, Michael G Schwern wrote: > An Ima::DBI user recently pointed out that DBI->connect_cached is not using > Apache::DBI like DBI->connect does and DBI->connect_cached has slightly > different semantics from Apache::DBI. > >

DBI->connect_cached not playing with Apache::DBI

2002-08-10 Thread Michael G Schwern
An Ima::DBI user recently pointed out that DBI->connect_cached is not using Apache::DBI like DBI->connect does and DBI->connect_cached has slightly different semantics from Apache::DBI. sub connect_cached { # XXX we expect Apache::DBI users to still call connect() m

RE: Apache::DBI question

2002-06-18 Thread William R. Mussatto
On Tue, 18 Jun 2002, Tim Harsch wrote: > Date: Tue, 18 Jun 2002 15:38:49 -0700 > From: Tim Harsch <[EMAIL PROTECTED]> > To: "'William R. Mussatto'" <[EMAIL PROTECTED]>, > "'Kotha, Nagaraju'" <[EMAIL PROTECTED]> > Cc:

RE: Apache::DBI question

2002-06-18 Thread Tim Harsch
Looking at the docs it looks as if Apache::DBI is intended for mod_perl. Nagaraju said: >Does any one have experience with Apache::DBI with Perl (not mod_perl)? Looks like maybe he is barking up the wrong tree then, or will it work without mod_perl? > -Original Message- >

RE: Apache::DBI question

2002-06-18 Thread Joe Raube
> | > I may be missing something, but with normal cgi, the program > | > goes away > | > when its done so the connection will go away as well. What > | > would hold > | > your persistent connection? Apache holds the connection! That's the point of Apache

RE: Apache::DBI question

2002-06-18 Thread Tim Harsch
e CGI )... However it like we are just trying to reinvent Fast::CGI ... I was hoping someone with experience with a server that has Apache::DBI, Fast::CGI and/or mod_perl might chime in and help explain the 3 a bit... > -Original Message- > From: Brian McCain [mailto:[EMAIL PROTECTE

Re: Apache::DBI question

2002-06-18 Thread Brian McCain
gt;; "'Kotha, Nagaraju'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 2002 3:38 PM Subject: RE: Apache::DBI question | Yeah but what about if you combine it with Fast::CGI (which I've never | done). But in theory wouldn't the CGI stay

RE: Apache::DBI question

2002-06-18 Thread Tim Harsch
--Original Message- > From: William R. Mussatto [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 18, 2002 11:17 AM > To: Kotha, Nagaraju > Cc: [EMAIL PROTECTED] > Subject: Re: Apache::DBI question > > > I may be missing something, but with normal cgi, the program > goes aw

Re: Apache::DBI question

2002-06-18 Thread William R. Mussatto
lt;[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Apache::DBI question > > Hi, > > Does any one have experience with Apache::DBI with Perl (not mod_perl)? > > How good these are with persistence connections? > Is there any issues for the large web sites? >

Re: Apache::DBI sometimes?

2002-05-21 Thread Ilya Martynov
>>>>> On Tue, 21 May 2002 12:56:03 -0500, Philip Molter <[EMAIL PROTECTED]> said: PM> On Tue, May 21, 2002 at 01:43:40PM -0400, [EMAIL PROTECTED] wrote: PM> : PM> : My guess would be: PM> : PM> : use DBI; PM> : use Apache DBI; PM> : PM> : my $per

Re: Apache::DBI sometimes?

2002-05-21 Thread Philip Molter
On Tue, May 21, 2002 at 01:43:40PM -0400, [EMAIL PROTECTED] wrote: : : My guess would be: : : use DBI; : use Apache DBI; : : my $persistant_dbh = Apache::DBI->connect(blah, blah, blah); : my $non_persistant_dbh = DBI->connect(blah, blah, blah); : : But that's untested and offe

Re: Apache::DBI sometimes?

2002-05-21 Thread Jeffrey . Seger
My guess would be: use DBI; use Apache DBI; my $persistant_dbh = Apache::DBI->connect(blah, blah, blah); my $non_persistant_dbh = DBI->connect(blah, blah, blah); But that's untested and offered with no warranty whatsoever that it will work. jeff ***

Apache::DBI sometimes?

2002-05-21 Thread Philip Molter
I have a web application that for various reasons needs some database connections to be persistent and some not to be. As far as I can tell, if I use Apache::DBI, then everything is going to be persistent under Apache::DBI. Is there a way to selectively disable the connection caching with

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-03 Thread Dan Kogai
On Friday, May 3, 2002, at 02:37 , Dave Mitchell wrote: > On Thu, May 02, 2002 at 12:30:37PM -0400, Michael G Schwern wrote: >> On Thu, May 02, 2002 at 05:08:49PM +0100, Tim Bunce wrote: >>> That's a pity because local($h->{foo}) is very useful for DBI >>> programs. >>> >>> Is anyone working on

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-03 Thread Dave Mitchell
On Thu, May 02, 2002 at 12:30:37PM -0400, Michael G Schwern wrote: > On Thu, May 02, 2002 at 05:08:49PM +0100, Tim Bunce wrote: > > That's a pity because local($h->{foo}) is very useful for DBI programs. > > > > Is anyone working on it? > > Dunno. My last perlbug of it got no response, and I

RE: Apache::DBI and $dbh attributes

2002-05-02 Thread Pepin, Joseph D (Joe), SOLCM
For what it's worth, I have a similar problem with a minimal Oracle client (no ORACLE_HOME): bind_param a NUMBER doesn't work with PL/SQL. >From: Roland Lammel [mailto:[EMAIL PROTECTED]] >Sent: Thursday, May 02, 2002 9:02 AM >Subject: Re: Apache::DBI and $dbh attributes >

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-02 Thread Jarkko Hietaniemi
On Thu, May 02, 2002 at 05:08:49PM +0100, Tim Bunce wrote: > On Thu, May 02, 2002 at 10:29:11AM -0400, Michael G Schwern wrote: > > On Thu, May 02, 2002 at 02:37:36PM +0100, Tim Bunce wrote: > > > > Is it a perl tie mechanism's problem or DBI's? > > > > > > Perl's. > > > > > > > what about 5.8.0

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-02 Thread Jarkko Hietaniemi
On Thu, May 02, 2002 at 10:29:11AM -0400, Michael G Schwern wrote: > On Thu, May 02, 2002 at 02:37:36PM +0100, Tim Bunce wrote: > > > Is it a perl tie mechanism's problem or DBI's? > > > > Perl's. > > > > > what about 5.8.0-tobe? Do you know of a version that doesn't leak? > > > > Not off-hand.

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-02 Thread Michael G Schwern
On Thu, May 02, 2002 at 05:08:49PM +0100, Tim Bunce wrote: > That's a pity because local($h->{foo}) is very useful for DBI programs. > > Is anyone working on it? Dunno. My last perlbug of it got no response, and I wouldn't even begin to know where to start looking for the problem. http://www.

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-02 Thread Tim Bunce
On Thu, May 02, 2002 at 10:29:11AM -0400, Michael G Schwern wrote: > On Thu, May 02, 2002 at 02:37:36PM +0100, Tim Bunce wrote: > > > Is it a perl tie mechanism's problem or DBI's? > > > > Perl's. > > > > > what about 5.8.0-tobe? Do you know of a version that doesn't leak? > > > > Not off-hand.

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-02 Thread Michael G Schwern
On Thu, May 02, 2002 at 02:37:36PM +0100, Tim Bunce wrote: > > Is it a perl tie mechanism's problem or DBI's? > > Perl's. > > > what about 5.8.0-tobe? Do you know of a version that doesn't leak? > > Not off-hand. Hopefully the latest doesn't. CC'd to perl5-porters > as I'm sure someone there wi

Re: local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-02 Thread Stas Bekman
Tim Bunce wrote: > On Thu, May 02, 2002 at 07:03:06PM +0800, Stas Bekman wrote: > Is it possible to simply localize the hash elements? Will this work properly? { my $dbh = DBI->connect(@connect) || die $DBI::errstr; print "LongReadLen is: ", $dbh->{Long

local($tied->{foo}) leaks (was: Apache::DBI and $dbh attributes)

2002-05-02 Thread Tim Bunce
On Thu, May 02, 2002 at 07:03:06PM +0800, Stas Bekman wrote: > >> > >>Is it possible to simply localize the hash elements? Will this work > >>properly? > >> > >> { > >> my $dbh = DBI->connect(@connect) || die $DBI::errstr; > >> > >> print "LongReadLen is: ", $dbh->{LongReadLen}, "\n"

Re: Apache::DBI and $dbh attributes

2002-05-02 Thread Roland Lammel
Hi Tim, I posted a workaround for a specific Oracle (hence DBD::Oracle) problem to the list some weeks ago which involved setting env-var NLS_LANG to be able to save long's with more than 4k (or was it 8k?), and now found some kind of pitfall this caused. When using bind_param with NLS_LANG se

Re: Apache::DBI and $dbh attributes

2002-05-02 Thread Stas Bekman
ified in the connect() call (including stuff like >LongReadLen) if >>>>>>dbi_connect_method = 'Apache'. that seems like the right thing, since with >Apache::DBI >>>>>>wat we want a "new" $dbh, just without the connect over

Re: Apache::DBI and $dbh attributes

2002-05-02 Thread Tim Bunce
(including stuff like >LongReadLen) if > >>>>dbi_connect_method = 'Apache'. that seems like the right thing, since with >Apache::DBI > >>>>wat we want a "new" $dbh, just without the connect overhead. and DBI seems like >a > >>>>reaso

Re: Apache::DBI and $dbh attributes

2002-05-02 Thread Bart Lateur
On Thu, 02 May 2002 16:56:02 +0800, Stas Bekman wrote: >Is it possible to simply localize the hash elements? Will this work >properly? > local $dbh->{LongReadLen} = 40; As Tim wrote a few months (?) ago: it will "work", but since a DBI object is a tied hash, you'll get memory leaks. --

Re: Apache::DBI and $dbh attributes

2002-05-02 Thread Stas Bekman
that seems like the right thing, since with >Apache::DBI >>>>wat we want a "new" $dbh, just without the connect overhead. and DBI seems like a >>>>reasonable place to do it, especially since DBI->connect is kinda >action-at-a-distance >>>>

Re: Apache::DBI and $dbh attributes

2002-05-01 Thread John D Groenveld
> Have fun! If you're going to do some heavy overhauling of Apache::DBI please consider whether it will allow us to more easily plugin DBD specific reauthenticate functions. http://mathforum.org/epigone/modperl/khimfoplax/001101c004f0$937a1e90$c2cf180c@azathoth Thanks, John [EMAIL PROTECTED]

Re: Apache::DBI and $dbh attributes

2002-05-01 Thread Tim Bunce
been a long time :) > >> > >>Stas and I just ran across something interesting concerning Apache::DBI and $dbh > >>attributes. I think it involves a both a bug and a place for enhancements. > >> > >>we all know how Apache::DBI works - it stashes away $

Re: Apache::DBI and $dbh attributes

2002-04-30 Thread Stas Bekman
[ CC'ing Edmund on this thread in case he is not on the dbi-users list] Tim Bunce wrote: > On Tue, Apr 30, 2002 at 03:34:26PM -0400, Geoffrey Young wrote: > >>hi Tim and all - it's been a long time :) >> >>Stas and I just ran across something interesti

Re: Apache::DBI and $dbh attributes

2002-04-30 Thread Tim Bunce
On Tue, Apr 30, 2002 at 03:34:26PM -0400, Geoffrey Young wrote: > hi Tim and all - it's been a long time :) > > Stas and I just ran across something interesting concerning Apache::DBI and $dbh > attributes. I think it involves a both a bug and a place for enhancements. >

Apache::DBI and $dbh attributes

2002-04-30 Thread Geoffrey Young
hi Tim and all - it's been a long time :) Stas and I just ran across something interesting concerning Apache::DBI and $dbh attributes. I think it involves a both a bug and a place for enhancements. we all know how Apache::DBI works - it stashes away $dbh based on connect string info. ho

DBI::connect_cached vs Apache::DBI::connect

2002-02-13 Thread Johnathan Kupferer
I have some object oriented modules that use DBI's connect_cached method. I'm porting these modules to mod_perl and I see that there is a Apache::DBI module that seems like it is doing the same thing that would happen under mod_perl using connect_cached, the only difference b

Re: Apache::DBI Oracle connection problem

2002-01-29 Thread Craig Leckband
Hi Jaswant- I have attached my diffs against Apache::DBI v0.88. However, I do not believe this will fix your problem. There may be 2 sources of your problem that I can think of. One is that you specified a very long ping time out with Apache::DBI::setPingTimeOut for your oracle connection

Apache::DBI Oracle connection problem

2002-01-25 Thread Jas Bhardwaj
7;m using persistent connection method using Apache::DBI in the startup script to open connection to the Oracle database. Will your fix listed in the message, address this problem. I'm asking this question because I have MySQL & I wonder if it would affect MySQL connection. Please help

Apache::DBI failing to ping a cached connection

2001-12-20 Thread Craig Leckband
Hello all, We are using: Apache 1.3.20 modperl 1.26 Apache::DBI 0.88 DBI 1.20 DBD::Oracle 1.12 We have come across an issue with Apache::DBI where it is making an incorrect assumption about the need to ping a cached connection. The code is written such that LastPingTIme and PingTimeOut

Apache::DBI and DBI subclasses

2001-12-06 Thread Philip Molter
According to the subclassing posts that are out there, one of the things that you're supposed to do when subclassing DBI is to call __PACKAGE__->init_rootclass(). That works fine. However, when you use Apache::DBI, Apache::DBI will be used to make the connection, but an Apache:

Apache::DBI and DBI subclassing

2001-11-29 Thread Philip Molter
If I have a subclass of DBI, say MyDBI, and I use that in a mod_perl app, does Apache::DBI not recognize it an cache it? Can Apache::DBI only cache handles generated from DBI itself? I've loaded Apache::DBI with a PerlModule statement, but my subclassed handle isn't persistent

*Really* disconnecting when using Apache::DBI

2001-09-13 Thread Carl Tydingco
Hi all, I'm using Apache::DBI to maintain persistent connections to an Oracle db. There is a case in my application where I would like to really disconnect from the database and create a new connection. The problem of course, is that Apache::DBI overloads the disconnect method and

Re: Apache::DBI Oracle LOB problem

2001-08-28 Thread Steven Schmidt
This problem was fixed by upgrading Oracle to 8.1.7 -Steve Robert Landrum wrote: > At 2:15 AM +0100 8/2/01, Tim Bunce wrote: > >On Mon, Jul 30, 2001 at 04:57:09PM -0400, Steven Schmidt wrote: > >> The following problem came up in porting EnsEMBL to Oracle: > >> > >> Level 9 DBI trace: > >>

diconnecting Apache::DBI

2001-08-16 Thread Todd Goldenbaum
hi, I'm using Apache::DBI in a site using modperl and mason. Most of my database connections use Apache::DBI, and I wnat to keep them that way. However, I'm finding special cases where I need to be able to open a database connection only temporarily- the standard DBI way- as oppose

Re: Apache::DBI Oracle LOB problem

2001-08-08 Thread Steven Schmidt
We are going from 8.1.5 to 8.1.7 Paul Edmondson wrote: > On Wed, 8 Aug 2001, Steven Schmidt wrote: > > > We now believe this is an Oracle problem which we can solve by upgrading. > > What version of Oracle caused these errors and which version are you > upgrading to? > > I apologise if this i

Re: Apache::DBI / DBD::Oracle error

2001-06-12 Thread Ged Haywood
Hi there, On Tue, 12 Jun 2001, Mark Vandenbroeck wrote: > There seems to be some confusion and even incorrectness in this trail. Let's get > some things straight : Thanks for setting me straight! 73, Ged.

Re: Apache::DBI / DBD::Oracle error

2001-06-12 Thread Mark Vandenbroeck
Hi all, There seems to be some confusion and even incorrectness in this trail. Let's get some things straight : * There is nothing wrong with NLS_LANG. In fact, it is extremely useful in an international setting. Your value is fine. * ORA_NLS33 is obsolete in 8.1.7 and should not be s

Re: Apache::DBI / DBD::Oracle error

2001-06-12 Thread Ged Haywood
Hi again, On Tue, 12 Jun 2001, Eric Kolve wrote: > Yes, I have NLS_LANG set to AMERICAN_AMERICA.WE8ISO8859P1. I seemed to get on better by removing NLS_LANG and ORA_NLS33 from my environment altogether. > BTW, I am also using the latest oracle client libs (8.17) if this > makes any difference;

Re: Apache::DBI / DBD::Oracle error

2001-06-12 Thread Eric Kolve
ite_perl/5.005/Apache/DBI.pm line 153. > > > > I am running Apache::DBI 0.88. > > > > I didn't see this error with DBI 1.14 + DBD::Oracle 1.06. Anyone have > > any ideas? > > Have you done something else as well? I don't think it's necessaril

Re: Apache::DBI / DBD::Oracle error

2001-06-12 Thread Ronald J Kimball
On Mon, Jun 11, 2001 at 04:15:15PM -0700, Eric Kolve wrote: > I recently upgraded to DBI 1.18 + DBD::Oracle 1.07 and upon restarts > with mod_perl, I get the following error: > > DBD::Oracle::db rollback failed: Error while trying to retrieve text for > error ORA-03113 (DBD ERROR: OCITransRollbac

Re: Apache::DBI / DBD::Oracle error

2001-06-12 Thread Mark Vandenbroeck
: > > > > DBD::Oracle::db rollback failed: Error while trying to retrieve text for > > error ORA-03113 (DBD ERROR: OCITransRollback) at > > /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 153. > > > > I am running Apache::DBI 0.88. > > > > I didn'

Re: Apache::DBI / DBD::Oracle error

2001-06-12 Thread Ged Haywood
ansRollback) at > /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 153. > > I am running Apache::DBI 0.88. > > I didn't see this error with DBI 1.14 + DBD::Oracle 1.06. Anyone have > any ideas? Have you done something else as well? I don't think it's necessarily D

Apache::DBI / DBD::Oracle error

2001-06-11 Thread Eric Kolve
running Apache::DBI 0.88. I didn't see this error with DBI 1.14 + DBD::Oracle 1.06. Anyone have any ideas? --eric

Re: Problem with Apache::DBI

2001-04-05 Thread Tim Bunce
Probably a bug in DBD::mysql. Talk to the author. Tim. On Thu, Apr 05, 2001 at 01:27:13PM -0400, Alec Smith wrote: > In my module I've got: > > use DBI; > use Apache::DBI; > $db = DBI->connect('DBI:mysql:dbname', 'username', 'password'