Blessed Monks, I have used DBI to execute a fairly complex SQL query via ODBC on an Oracle database, and it's run without a hitch for years on a 32-bit XP box (Perl v5.6.1) Now I'm migrating the exact same query to a 64-bit XP server(Perl v5.10, 64bit), and the results are different. It seems that certain fields, almost all certainly ints/floats, are now returning zero instead of the expected values. All other string/date fields return OK, it's just numbers that come back as zero. It's not a problem with the DB as the 32-bit query still runs OK. Is there any difference in the type interpretation of the later 64-bit DBI/DBD code? Also, any SQL based tips are appreciated Thanks

SOLVED

Thanks Tye, CAST(field as VARCHAR(50)) retrieves each problem field correctly.

Appreciate the help.


In reply to Same DBI query gives different results on 32 & 64 bit boxes by cenobite1066

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.