Or to be specific, FreeTDS hasn't yet implemented the API calls that are needed to handle placeholders at the protocol level.

It should be noted that although Sybase and MS-SQL both "speak" the TDS protocol the two companies have diverged significantly in the last few years, and handling of placeholders is different with MS-SQL (TDS version 7 and 8) compared to Sybase (TDS version 5).

Among other things Sybase has implemented a capability based negotiation functionality when the client and server first connect, which makes the protocol extensible without necessarily having to rev the protocol version. This is why DBD::Sybase calls ct_capability(CS_CAP_REQUEST, CS_REQ_DYN) to check if the server is capable of handling "dynamic" requests (i.e. placeholders). As this request doesn't exist in the MS version of the protocol the FreeTDS folks will have to emulate it (not too hard, probably).
But it's implementing the rest of the functionality that is needed to handle this stuff in a manner consistent with the way DBD::Sybase expects it to work that I think could be tricky.

I've been thinking for a while that it might be a good idea to create a DBD module that is more specific to FreeTDS and MS-SQL, instead of (or in addition to) trying to shoehorn DBD::Sybase into this function.

Michael


In reply to Re: Re: Re^2: Quote mark in string messing up mySQL INSERT by mpeppler
in thread Quote mark in string messing up mySQL INSERT by heezy

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.