xs2praveen has asked for the wisdom of the Perl Monks concerning the following question:
this dumps core with 5.8.0 but works fine with 5.8.3. if i change the query to "select number_column from temp where id=?" both versions work fine. Any help regarding this issue?use strict; use DBI; my $id=41; my $twotask=$ENV{"TWO_TASK"}; my $dsn="dbi:Oracle:".$twotask; my $DBH=DBI->connect("$dsn",'hr','hr') or die "error \n".DBI->errstr; my $stmt="select varchar_column from temp where id=?"; my $sth=$DBH->prepare($stmt); $sth->execute($id)||die "Could not exec sql stmt\n"; my @row=$sth->fetchrow_array; print $row[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl DBI issue
by tirwhan (Abbot) on Jul 03, 2007 at 12:23 UTC | |
|
Re: Perl DBI issue
by rir (Vicar) on Jul 03, 2007 at 13:37 UTC |