We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.9.64
23
H2
Mac
merge sql using when matched syntax and updating only s1 property.
when matched
s1
merge sql overrides existing s2 value.
s2
merge should not override existing values with default ones in case of update.
Also jimmer includes all properties in update part of insert on conflict do nothing for postgres, which is unnecessary.
insert on conflict do nothing
sql.save(A { name = "new_name" s1 = "new_value" })
merge into A(NAME, S1, S2) key(NAME) values(?, ?, ?), variables: [new_name, new_value, q2]
@Entity @KeyUniqueConstraint interface A : SerialId { @Key val name: String @Default("q1") val s1: String @Default("q2") val s2: String }
No response
The text was updated successfully, but these errors were encountered:
#956
396202b
Try 0.9.68
0.9.68
Sorry, something went wrong.
No branches or pull requests
Jimmer Version
0.9.64
JDK Version
23
Database
H2
OS
Mac
Expected behavior
merge sql using
when matched
syntax and updating onlys1
property.Actual behavior
merge sql overrides existing
s2
value.Description
merge should not override existing values with default ones in case of update.
Also jimmer includes all properties in update part of
insert on conflict do nothing
for postgres, which is unnecessary.Reproduction steps
Generated SQL
merge into A(NAME, S1, S2) key(NAME) values(?, ?, ?), variables: [new_name, new_value, q2]
Relation Model
Screenshots
No response
Logs
No response
The text was updated successfully, but these errors were encountered: