I don't really know how DBD::ODBC works, but based on my understanding of the TDS protocol I suspect that you can't use bind_param_inout() with a multi-statement request (using the
declare in the code above makes this a multi-statement request).
However, as you don't get an error from DBD::ODBC itself during the prepare() I would think that this is either a bug in DBD::ODBC, or a problem with FreeTDS that doesn't quite handle the OUTPUT parameters as it should (the fact that the data is returned in the driver trace doesn't necessarily mean that the driver decodes the data correctly.) As FreeTDS is very much a work in progress, and as OUTPUT parameters from MS-SQL have only just been added I would suspect the latter.
I think you've already posted this to the FreeTDS mailing list - I suggest following up over there...
Michael
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.