OK. Before suggesting that there is a DBI bug, did you go through the recommended routine checks?
The problem could be a syntax error in the SQL statement. Even if you say that you tested the statement in the database, what you tested was not the same, because it did not have embedded variables inside. So we shouldn't rule out the possibility of a quoting problem.

recommendations
  1. You could use the DBI->trace(2) method, to find out where exactly the flow of info between client and server is broken, and what query was passed.
  2. You could reduce your script to the minimum instructions that reproduce the error, (using strict and -w). If you can do it without quoting problems, i.e. by hardcoding the SQL string, then we could rule out some more things and start considering the possibility of a bug.
  3. Have a look at some tutorials that could help you to find out what could be wrong: Reading from a database, Tricks with DBI and The fine art of database programming.

Please give us some more info.
 _  _ _  _  
(_|| | |(_|><
 _|   

In reply to Re: DBI bug? by gmax
in thread DBI bug? by DaWolf

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.