Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tds5_process_dyn_result2: Don't trust Sybase w/blob params. #571

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 29, 2024

  1. tds5_process_dyn_result2: Don't trust Sybase w/blob params.

    As of ASE 16.0, Sybase servers have started allowing dynamic query
    (prepared statement) declarations with IMAGE or (N)TEXT parameters.
    However, subsequent attempts to instantiate these queries have been failing
    with message 3805, "The token datastream length was not correct."  In such
    cases, switch on dynamic query emulation (as already needed for older
    Sybase versions that immediately reject these declarations) and explicitly
    discard column information to avoid misconstruing the status of subsequent
    queries that yield no row results.
    
    Signed-off-by: Aaron M. Ucko <[email protected]>
    ucko committed May 29, 2024
    Configuration menu
    Copy the full SHA
    2ce77e7 View commit details
    Browse the repository at this point in the history