I have a SlashDB installation on top of MySQL 5.7. I use it to serve custom REST API calls to allow other people to access the data in the DB. Most of these happen through the 'SQL Pass-thru' feature.
When executing straight SQL queries, changes to the DB are committed immediately. However, this is not true when I execute stored functions (through select [function name]
). The function would execute perfectly, but any changes to the data is not committed until I issue commit;
. The main problem is that this causes stranded locks on tables and other MySQL objects.
Anybody has any idea what's happening here?