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
Describe the bug Using query builder with onConflict and merge it doesn't use the naming convention to translate the props
Stack trace
insert into `issues_clients` (`added_time`, `anomaly_id`, `id_issues`, `id_issues_clients`, `id`, `provcode`, `solved_time`, `status`, `ticket_pending`, `updateAt`) values (1628665711, 'XXX', 45129, NULL, 'XXX', 'XXX', 0, 0, 0, '2021-09-06 12:10:58.086') on duplicate key update `status` = VALUES(status),`solvedTime` = 0 - (conn=512988, no: 1054, SQLState: 42S22) Unknown column 'solvedTime' in 'field list' sql: insert into `issues_clients` (`added_time`, `anomaly_id`, `id_issues`, `id_issues_clients`, `id`, `provcode`, `solved_time`, `status`, `ticket_pending`, `updateAt`) values (1628665711, 'XXX', 45129, NULL, 'XXX', 'XXX', 0, 0, 0, '2021-09-06 12:10:58.086') on duplicate key update `status` = VALUES(status),`solvedTime` = 0 - parameters:[]
To Reproduce Steps to reproduce the behavior:
Expected behavior The on conflict updates of sql need to have solved_time not solvedTime
solved_time
Additional context The entity has solvedTime prop, and in the db has solved_time, work with other methods.
I'm using this object in merge
{ "solvedTime": 0 }
Versions
The text was updated successfully, but these errors were encountered:
5aead23
fix(query-builder): translate field names in qb.merge()
qb.merge()
54c1ceb
Closes mikro-orm#2177
B4nan
No branches or pull requests
Describe the bug
Using query builder with onConflict and merge it doesn't use the naming convention to translate the props
Stack trace
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The on conflict updates of sql need to have
solved_time
not solvedTimeAdditional context
The entity has solvedTime prop, and in the db has solved_time, work with other methods.
I'm using this object in merge
Versions
The text was updated successfully, but these errors were encountered: