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
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