DBI-1.21 DBI.xs patch

--------------ms10979709E84C5FA689C39B1B
Content-Type: multipart/mixed;
 boundary="------------EF8C4696EAE17FB10D560866"

This is a multi-part message in MIME format.
--------------EF8C4696EAE17FB10D560866
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit


Dear Tim,

I receive the error "Can't read $DBI::err, last handle unknown or destroyed
during global destruction" many times (and for $DBI::errstr too).
I'm not able to say what is the reason of these errors.  Setting the trace levelel
to 10 didn't help, and trace files were the same for erroneous and correct runs.

I would like to ask you to apply this patch to DBI.xs, because you've mentioned
this: /* warn() may be changed to a debug later */

I would like to ask you to apply patch provided, which do exactly that thing.

In occasion, I would like to thank you for this great module.  Thanks!

Best regards,
Andrew Ivanov.
--------------EF8C4696EAE17FB10D560866
Content-Type: text/plain; charset=koi8-r;
 name="DBI.xs-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="DBI.xs-patch"

--- DBI.xs.orig	Thu Feb  7 18:27:39 2002
+++ DBI.xs	Thu Feb  7 18:29:10 2002
@@ -2960,8 +2960,10 @@
 	SvROK_off(DBI_LAST_HANDLE);
 	XSRETURN(1);
     }
-    if ( !ok ) {		/* warn() may be changed to a debug later */
-	warn("Can't read $DBI::%s, last handle unknown or destroyed", meth);
+    if ( !ok ) {
+	if (trace) {
+	    PerlIO_printf(DBILOGFP, "Can't read $DBI::%s, last handle unknown or destroyed\n", meth);
+	}
 	XSRETURN_UNDEF;
     }
 

--------------EF8C4696EAE17FB10D560866--

--------------ms10979709E84C5FA689C39B1B
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIIH6wYJKoZIhvcNAQcCoIIH3DCCB9gCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
Bb4wggKNMIIB9qADAgECAgMFXMEwDQYJKoZIhvcNAQECBQAwgZIxCzAJBgNVBAYTAlpBMRUw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0EgMjAwMC44LjMwAgMFXMEwCQYFKw4DAhoFAKCBsTAYBgkqhkiG9w0BCQMxCwYJKoZI
hvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wMjAyMDcxNjEyMTJaMCMGCSqGSIb3DQEJBDEWBBR5
I3WJ/07cCE5GrNZtubhpfyWqoTBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqG
SIb3DQMCAgIAgDAHBgUrDgMCBzANBggqhkiG9w0DAgIBQDANBggqhkiG9w0DAgIBKDANBgkq
hkiG9w0BAQEFAASBgI9LGkuO1WuJIw/B/tv92gNjvp1UI/MkM6xrMvTBrAUPQ2743gUekKhl
sx44YItENDx3lCQYuhysfCmdB1wl7nRnR0uVR5KnQJsggzsKsDGbfHQ+N53guKthhtz4MV1U
psAbGzuEx7bt2gykK4paAHU9r2lswcS/OUoarDGdP03/
--------------ms10979709E84C5FA689C39B1B--

0
ivanov
2/7/2002 4:12:12 PM
perl.dbi.users 11067 articles. 1 followers. Follow

1 Replies
406 Views

Similar Articles

[PageSpeed] 54

On Thu, Feb 07, 2002 at 07:12:12PM +0300, Andrew Ivanov wrote:
> 
> Dear Tim,
> 
> I receive the error "Can't read $DBI::err, last handle unknown or destroyed
> during global destruction" many times (and for $DBI::errstr too).
> I'm not able to say what is the reason of these errors.  Setting the trace levelel
> to 10 didn't help, and trace files were the same for erroneous and correct runs.

Have any DBI handles been used before $DBI::err is used?
Does it happen in when the program exits?
Does it happen in an error handler?
Which DBD?

Please try to cut down the code to the smallest part that reproduces the problem.


> I would like to ask you to apply this patch to DBI.xs, because you've mentioned
> this: /* warn() may be changed to a debug later */
> 
> I would like to ask you to apply patch provided, which do exactly that thing.

But I'd rather not sweep something under the carpet without knowing what it is!

> In occasion, I would like to thank you for this great module.  Thanks!

Thanks!

Tim.

p.s. Instead of $DBI::err you can use $h->err.

> Best regards,
> Andrew Ivanov.
> --- DBI.xs.orig	Thu Feb  7 18:27:39 2002
> +++ DBI.xs	Thu Feb  7 18:29:10 2002
> @@ -2960,8 +2960,10 @@
>  	SvROK_off(DBI_LAST_HANDLE);
>  	XSRETURN(1);
>      }
> -    if ( !ok ) {		/* warn() may be changed to a debug later */
> -	warn("Can't read $DBI::%s, last handle unknown or destroyed", meth);
> +    if ( !ok ) {
> +	if (trace) {
> +	    PerlIO_printf(DBILOGFP, "Can't read $DBI::%s, last handle unknown or destroyed\n", meth);
> +	}
>  	XSRETURN_UNDEF;
>      }
>  



0
Tim
2/7/2002 11:00:37 PM
Reply:

Similar Artilces:

DBI::Format in DBI-1.34 vs. DBI-Shell-11.91
There seem to be conflicting versions of DBI::Format in DBI-1.34 and DBI-Shell-11.91. After upgrading to the recent DBI-1.34 I again get a warning from the CPAN "r" command which reports that there is a more recent version of DBI::Format to be found in DBI-Shell-11.91.tar. When I read that the new DBI-1.34 removed the old DBI::Shell from distribution, I was surporised that it kept DBI::Format. I couldn't find any perl references in DBI-1.34 that refered to DBI::Format, so perhaps if the official DBI::Format is being kept up to date in DBI-Shell-11.91, you could ...

DBI-1.32, IRIX compile warnings
Hello, I'm receiving the following warnings involving DBI.xs when running make on an SGI (IRIX-6.5.11 - DBI-1.32)... "DBI.xs", line 919: warning(1178): argument is incompatible with corresponding format string conversion (IV)DBIc_MY_H(imp_xxh), (IV)SvRVx(DBIc_MY_H(imp_xxh)), ^ Is this serious? Make test fails t/40profile; however, this is likely due to the fact Time/HiRes.pm is not installed? Make test also ends w/ *** Error code 2 (bu21), this seems wrong? Is it advisable to make install? Any suggestions? Thanks, Paul ...

[perl5-dbi/dbi] 7c2a83: DBI-1.632 was released without the TYPE stuff
----==_mimepart_54676ba37c070_5ecf3fdf911ed2b87935 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Branch: refs/heads/dbd-file-TYPE Home: https://github.com/perl5-dbi/dbi Commit: 7c2a8350d205604ca51f90ca7e440e1f8ef31310 https://github.com/perl5-dbi/dbi/commit/7c2a8350d205604ca51f90ca7e440e1f8ef31310 Author: H.Merijn Brand - Tux <h.m.brand@xs4all.nl> Date: 2014-11-15 (Sat, 15 Nov 2014) Changed paths: M Changes M lib/DBD/File.pm Log Message: ----------- DBI-1.632 was released without the TYPE stuff ---...

[perl5-dbi/DBI-Test] a2d1b2: create separate tests for DBI and DBI::Mock ...
----==_mimepart_51f946a54bb1b_2af891bd4c100430 Date: Wed, 31 Jul 2013 10:17:25 -0700 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-ID: <51f946a54c721_2af891bd4c100582@hookshot-fe3-pe1-prd.aws.github.net.mail> Branch: refs/heads/master Home: https://github.com/perl5-dbi/DBI-Test Commit: a2d1b22d134be0ca353e0f0b312fb14da24c798e https://github.com/perl5-dbi/DBI-Test/commit/a2d1b22d134be0ca353e0f0b312fb14da24c798e Author: Jens Rehsack <sno@netbsd.org> Date: 2013-07-31 (Wed, 31 Jul 2013) Changed ...

[perl5-dbi/dbi] d353b6: Add release date to DBI 1.632 heading in Changes
----==_mimepart_545a0ef45875a_65bd3fe14ad7d2bc35fd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Branch: refs/heads/master Home: https://github.com/perl5-dbi/dbi Commit: d353b6a93f38d1a72e09e6b620e0ec3fa33c2cfe https://github.com/perl5-dbi/dbi/commit/d353b6a93f38d1a72e09e6b620e0ec3fa33c2cfe Author: Tim Bunce <Tim.Bunce@pobox.com> Date: 2014-11-05 (Wed, 05 Nov 2014) Changed paths: M Changes Log Message: ----------- Add release date to DBI 1.632 heading in Changes ----==_mimepart_545a0ef45875a_65bd3fe14ad...

Problem with DBI-1.20 vs. DBI-1.19
I've found a reproducible failure that occurs in DBI-1.20 that does not occur in DBI-1.19. Using the DBD::mysql backend, by the way, and observed using both mysql-3.23.37 and mysql-3.23.46 (it's not asked about in the bug report format). Apologies if yahoo mail mangled the newlines. OK here's the bug report: HERE is a script, intended to be saved as 'showbug.pl', that shows the problem under 1.20 but not under 1.19. After the __END__ of the script is the database schema for the test 'jl1' database (that's jay-el-one, for those with am...

[perl5-dbi/dbi]
----==_mimepart_515e8f3785207_523740c1306299e Date: Fri, 05 Apr 2013 01:45:43 -0700 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-ID: <515e8f3787c27_523740c13063084@hookshot-fe5-pe1-prd.aws.github.net.mail> Branch: refs/heads/trunk Home: https://github.com/perl5-dbi/dbi ----==_mimepart_515e8f3785207_523740c1306299e-- ...

Errors in DBD-Oracle 1.12 using DBI 1.26, OK with DBI 1.25
Platform: Windows 2000 Perl: ActiveState Perl 5.6.1 build 629 ---------------------------------------------------------------------------- ---- USING DBI 1.25 ---------------------------------------------------------------------------- ---- C:\temp\DBD-Oracle-1.12>nmake test Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. C:\bin\Perl\bin\Perl.exe -Mblib -IC:\bin\Perl\lib -IC:\bin\Perl\lib -e " use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;" t\bas...

[PATCH DBI] RE: [BUG] DBI 1.20, bleadperl and 64 bit ints not mixing too well
Tim The attached patch corrects various pointer cast, printf format and "computed value not used" warning from DBI; which I found following up the following messages. I was using perl-5.7.2@11938, configured with -Duse64bitint. My solution to the setlinebuf warning was to delete all the PerlIO definitions, perhaps not the best solution. Robin > From perl5-porters-return-43379-rmb1=cise.npl.co.uk@perl.org Sat Sep 8 09:50:45 2001 > Mailing-List: contact perl5-porters-help@perl.org; run by ezmlm > Precedence: bulk > list-help: <mailto:perl5-porters-h...

Announce: DBI-1.57 RC1 (aka DBI-1.56_91)
file: $CPAN/authors/id/T/TI/TIMB/DBI-1.56_91.tar.gz size: 489501 bytes md5: 0a690df4e157ce8de4862bc019d3c9f6 =head2 Changes in DBI 1.57 (svn rev 9639), 13th June 2007 Fixed XS versions of select*_*() methods to call execute() fetch() etc., with inner handle instead of outer. Fixed execute_for_fetch() to not cache errstr values thanks to Bart Degryse. Fixed unused var compiler warning thanks to JDHEDDEN. Fixed t/86gofer_fail tests to be less likely to fail falsely. Corrected timeout example in docs thanks to Egmont Koblinger. Changed t/01basic.t to w...

Announce: DBI-1.57 RC2 (aka DBI-1.56_92)
file: $CPAN/authors/id/T/TI/TIMB/DBI-1.56_92.tar.gz size: 489501 bytes md5: 0a690df4e157ce8de4862bc019d3c9f6 Just uploaded. You should be able to get it from here soon if your mirror doesn't have it: ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/Tim_Bunce/DBI-1.56_91.tar.gz As usual, I'd appreciate any and all testing you can do. Thanks! Tim. ------=_NextPart_000_EC11_01C7AF5D.E51868F0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit testing with ftp://ftp.funet.fi...

[perl5-dbi/dbi] fc2ec2: add DBI::Test dependency
----==_mimepart_5169ac8ba2c2a_4a479bb1304466c Date: Sat, 13 Apr 2013 12:05:47 -0700 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-ID: <5169ac8ba5319_4a479bb13044782@hookshot-fe3-pe1-prd.aws.github.net.mail> Branch: refs/heads/dbi-test Home: https://github.com/perl5-dbi/dbi Commit: fc2ec21c76f2d70d504dfa53fa4766c477eb8ac5 https://github.com/perl5-dbi/dbi/commit/fc2ec21c76f2d70d504dfa53fa4766c477eb8ac5 Author: Jens Rehsack <sno@netbsd.org> Date: 2013-04-13 (Sat, 13 Apr 2013) Changed paths: ...

CPAN.pm installs DBI-1.35 instead of DBI-1.36?
-ponder- $ perl -MCPAN -e 'shell' > install DBI Installs DBI-1.35 instead of the brand spanking new DBI-1.36? Or is it = just me? Or am I an idiot? $ perl -MCPAN -e 'print $CPAN::VERSION' 1.70 (Default CPAN install.) Thanks, j -------- Maybe this would be a good thing to list in this report too? $ cat /usr/lib/perl5/5.6.0/CPAN/Config.pm # This is CPAN.pm's systemwide configuration file. This file provides # defaults for users, and the values can be changed in a per-user # configuration file. The user-config file is being looked for as...

DBI object version 1.32 does not match $DBI::VERSION 1.48
------=_NextPart_000_0079_01C53A7A.C808ACC0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I believe that I may have asked this question before and cannot find the answer that I had gotten, So I will ask again. I have upgraded DBI to version 1.48 and I am now having issues and errors with my scripts. The error that I am getting is : DBI object version 1.32 does not match $DBI::VERSION 1.48 at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 249. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/i386-linu...

Web resources about - DBI-1.21 DBI.xs patch - perl.dbi.users

Resources last updated: 1/19/2016 1:55:40 PM