Skip to content

Incorrect batched CallableStatement timeout behavior #1961

@mmimica

Description

@mmimica

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions