Hi all-
I am hoping someone out there has encountered this issue, and may be able to pose a possible solution. I am currently writing a cgi perl script to access a sybase table and print the results in HTML. Everything is working fine, minus a small truncation issue.
In the script, I am reading a database column that is of type varchar(1000). I perform the following perl commands:


$statement = 'SELECT Location, Usage, FROM DevelopmentTool';
$sth = $dbh->prepare($statement);
$sth->execute;


I then loop the results, and print the results into an HTML table. The location result though I am noticing truncates the output at 255 characters all of the time. I did a select directly from the database, and the entire result resides in the database, but for some reason, when selecting via the perl module and printing the results, the result always truncates.

Is there something that I am possibly missing in my query, which may prevent this truncation issue?

Thanks in advance for any help.

Chris.

In reply to Perl Database Select Results Being Truncated by cpatrick

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.