Skip to content

H2 inner insert is not counted when a select is around  #199

@MelleD

Description

@MelleD

Describe the bug
An auto increment id is currently inserted with the following statement (H2).

select "ID" from final table (insert into...

The select statement is counted with @ExpectSelect. However, the actual insert statement does not.
This means that ExpectInsert is always 0 for a current insert statement.

Expected behavior
I would expect the insert statement to be counted.

Actual behavior
The insert statement is not counted.

To Reproduce
Use jooq with H2 and produce a store entity with a auto increment/identity primary key column id.

Should also be possible to use plain prepared statement with the same SELECT and the inner insert.

Versions

  • QuickPerf:
  • JDK: 17
  • OS: Ventura
  • Database (if SQL annotation bug): H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions