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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


jvdias@xxxxxxxxxx changed:

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




------- Additional Comments From jvdias@xxxxxxxxxx  2006-02-20 18:37 EST -------
I still really cannot reproduce this bug, using the following program,
modified as you suggested:
---
#!/usr/bin/perl
use DBI;
use DBD::Pg;
($host,$db,$user)=($ARGV[1],$ARGV[2]);
$dbh = DBI->connect('dbi:Pg:dbname=$db;host=$host;', $user, '',
                    { pg_server_prepare => 1 }
                   ) || die("can't connect: $! $?");
my $stmt;
sub prepare_stmt
{
    $stmt = $dbh->prepare("SELECT * FROM t WHERE c = ?");
}

$stmt->{pg_server_prepare}=1;

prepare_stmt();

my $rv = $stmt->execute("A");

while (my $data = $stmt->fetchrow_hashref)
{
    print join(" ",values %{$data}),"\n";
};
---

NOTE: The '$stmt->{pg_server_prepare}=1;' statement has no effect.

The program above runs without errors and exits with 0 exit status.

Concluding that this is 'NOTABUG'. If you can still reproduce this problem,
please append the complete perl program that causes the bug, and a pg_dump(1)
of the database the program connects to when the problem occurs, and re-open
this bug - thanks.

-- 
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.


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux