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@xxxxxxxxxxxx changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|NOTABUG | ------- Additional Comments From pb@xxxxxxxxxxxx 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.