Skip to content
New issue

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

Missing REPLACE or UPSERT and SELECT FOR UPDATE #395

Open
Janderio opened this issue Jul 25, 2018 · 0 comments
Open

Missing REPLACE or UPSERT and SELECT FOR UPDATE #395

Janderio opened this issue Jul 25, 2018 · 0 comments

Comments

@Janderio
Copy link

Janderio commented Jul 25, 2018

When using MariaDB REPLACE as addition to INSERT would be nice to have here.

See:
https://mariadb.com/kb/en/library/replace/
It's just try to insert but update if exists.
and
https://mariadb.com/kb/en/library/set-transaction/#read-committed (Locking reads)
if you want a max + 1 for insert without giving double a chance where auto_increment does not work.

(If one of you know how to "INSERT ... VALUES (SELECT MAX(..)+1) ..) .." in KORMA would be nice to know!)

@Janderio Janderio changed the title Missing REPLACE or UPSERT Missing REPLACE or UPSERT and SELECT FOR UPDATE Aug 6, 2018
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

No branches or pull requests

1 participant