I have Oracle 10g installed on linux machine.Oracle has shipped the perl version 5.8.3 but I have one more version 5.8.0 on my machine. On selecting a varchar column of some table using 5.8.0 perl gives segmentation fault whereas it works fine with the version 5.8.3. But if i select the number column of the same table,both the versions work fine. here is the code snippet:
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];
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?

In reply to Perl DBI issue by xs2praveen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.