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

Conversation

ucko
Copy link
Contributor

@ucko ucko commented May 30, 2024

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.

Split from #555.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant