[Bug 174373] Perl program crashes on end if prepared statements are used

bugzilla at redhat.com bugzilla at redhat.com
Thu Dec 22 10:10:38 UTC 2005


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: Perl program crashes on end if prepared statements are used


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174373


pb at bieringer.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|NOTABUG                     |




------- Additional Comments From pb at bieringer.de  2005-12-22 05:10 EST -------
Sorry, was busy, but I've tracked it more down by reducing my crashing program
to the essential code and can now reproduce this using your example.

-my $stmt = $dbh->prepare("SELECT * FROM t WHERE c = ?");
+my $stmt;
+
+sub prepare_statements() {
+       $stmt = $dbh->prepare("SELECT * FROM t WHERE c = ?");
+};

 $stmt->{pg_server_prepare}=1;

+prepare_statements();
+


So the reason is that the statements are prepared in a subroutine and not
undefined before program ends.

-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the Fedora-perl-devel-list mailing list