Skip to content

fix: include manually assigned id in scale history inserts(#6871) - #6993

Open
juicewcode wants to merge 1 commit into
apache:masterfrom
juicewcode:fix/6871-scale-history-id-insert
Open

fix: include manually assigned id in scale history inserts(#6871)#6993
juicewcode wants to merge 1 commit into
apache:masterfrom
juicewcode:fix/6871-scale-history-id-insert

Conversation

@juicewcode

Copy link
Copy Markdown
Contributor

Fixes #6871
Fix scale history inserts for the manually assigned varchar primary key.

Changes

  • Removed invalid LAST_INSERT_ID() selectKey blocks.
  • Added id binding to insert.
  • Added conditional id binding to insertSelective.
  • Added mapper integration tests covering both insert paths.

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

  Remove LAST_INSERT_ID selectKey usage from scale_history inserts and bind
  the caller-provided varchar primary key. Add mapper integration tests for
  regular and selective inserts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] scale_rule countByQuery omits WHERE keyword — SQL syntax error when metricName set + count/list mismatch

1 participant