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

Incorrect batched CallableStatement timeout behavior #1961

Closed
mmimica opened this issue Nov 9, 2022 · 1 comment
Closed

Incorrect batched CallableStatement timeout behavior #1961

mmimica opened this issue Nov 9, 2022 · 1 comment
Labels
Under Investigation Used for issues under investigation

Comments

@mmimica
Copy link
Contributor

mmimica commented Nov 9, 2022

Driver version

11.2.1, main

SQL Server version

Microsoft SQL Server 2019 (RTM-CU8) (KB4577194) - 15.0.4073.23 (X64)
Sep 23 2020 16:03:08
Copyright (C) 2019 Microsoft Corporation
Developer Edition (64-bit) on Linux (Ubuntu 18.04.5 LTS)

Client Operating System

Linux

Table schema

See #1960

Problem description

With enablePrepareOnFirstPreparedStatementCall=true.
When timeout happens, the update count in the BatchUpdateException is incorrect and doesn't reflect what actually happened.

Expected behavior

In the test, 5 statements are executed in a batch. The 4th one statement times out. The first three succeed, the last two fail. updateCount should reflect that.

Actual behavior

See the test in #1960

@tkyc
Copy link
Contributor

tkyc commented Nov 10, 2022

Thanks, we'll take a look and get back to you.

@tkyc tkyc added the Under Investigation Used for issues under investigation label Nov 10, 2022
@tkyc tkyc closed this as completed Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Under Investigation Used for issues under investigation
Projects
None yet
Development

No branches or pull requests

2 participants