well, I'm thinking maybe it's a bug

I've tried different queries:

my $sql0 = qq|SELECT "MARQUE" FROM $table|; my $sql1 = qq|SELECT "DESC1" FROM $table|; my $sql2 = qq|SELECT "DESC2" FROM $table|; my $sql3 = qq|SELECT "PRIX" FROM $table|; my $sql4 = qq|SELECT "REF" FROM $table|; my $sql5 = qq|SELECT "TAILLE", "COULEUR" FROM $table|; my $sql6 = qq|SELECT "REF" FROM $table LIMIT 5|; my $sql7 = qq|SELECT "DESC1" FROM $table ORDER BY "REF"|; my $sql8 = qq|SELECT "REF" FROM $table ORDER BY "PRIX"|;

sql0, 1, 3, 4, 5 return all records

sql2 produces a 500 internal server error (so there is a problem in one or more rows in the "DESC2" column)

sql6, 7 and 8 return nothing

Like you said, I do not think now that the problem is perl-related. It's either DBI or DBD::ODBC

H

In reply to Re^4: Fetching data from Access using DBI by hacheb
in thread Fetching data from Access using DBI by hacheb

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.