Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

how can I generate replace into table valeus use honeysql with mysql8 #421

Closed
imxingquan opened this issue Aug 18, 2022 · 1 comment
Closed
Assignees
Labels
vendor-specific I think this belongs in a dialect, i.e., not the default behavior?

Comments

@imxingquan
Copy link

https://dev.mysql.com/doc/refman/8.0/en/replace.html
REPLACE INTO tableName
the old row is deleted before the new row is inserted

@seancorfield seancorfield self-assigned this Aug 24, 2022
@seancorfield
Copy link
Owner

I'll add :replace-into under the :mysql dialect as an "alias" for :insert-into (since it has the same syntax) so it will produced REPLACE INTO instead of INSERT INTO.

@seancorfield seancorfield added the vendor-specific I think this belongs in a dialect, i.e., not the default behavior? label Aug 24, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
vendor-specific I think this belongs in a dialect, i.e., not the default behavior?
Projects
None yet
Development

No branches or pull requests

2 participants