add lock clause support in select queries#1
Conversation
|
I'm sorry to have got to wait for you because I miss this PR. LOCK clause is supported by only PostgresSQL. Can you write this to godoc clearly? |
|
@umisama LOCK clause (row level lock) is not supported by only PostgreSQL but also MySQL (InnoDB engine). However this patch won't work in MySQL because MySQL uses SELECT ... LOCK IN SHARE MODE clause to represent shared lock, like described in https://dev.mysql.com/doc/refman/5.7/en/innodb-locking-reads.html. |
|
thank you yosida95. I've checked LOCK clause is supported by InnoDB but it is not standard SQL. |
|
Perhaps it would be better if the functions were named |
|
Hmm, I hope using dialect to compatible with mysql. OK! I'll implement LOCK clause with your idea! |
No description provided.