-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How does one do table locking? #287
Comments
When you run the example the code seems to lock when trying to execute: INSERT INTO bar SELECT * FROM foo Which was right after tables foor/bar were locked with: LOCK TABLE foo WRITE, bar WRITE |
The issue here is that you are running those queries on different |
Using a transaction poses its own challenges see: TLDR: Using a transaction, one should end it with a |
@hokadiri have you found any solution to the challenge you mentioned? |
This example illustrates what looks like the driver stalling when one uses locking on tables.
If one manually executes the SQL in the mysql client there are no issues.
Is there some special way table locking is handled in the driver that I am not using int he example?
The text was updated successfully, but these errors were encountered: