Skip to content

getGeneratedKeys() is not working after executeBatch() is called #358

Open
@utenakr

Description

@utenakr

I need support for getGeneratedKeys() on executeBatch() defined according to the JDBC spec. Our code is shared with other JDBC drivers, and we found our code is not working with MS-SQL Server JDBC.

I try to work around with replacing executeBatch() with executeUpdate(), but I am afraid this will lead to overhead to MS-SQL server. I need to implement getGeneratedKey() after executeBatch() is called with rollback compatibility.

If you have a workaround with my use case, that would be great!

Thank you,
Ji Sun

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementAn enhancement to the driver. Lower priority than bugs.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions