I am at a loss to explain what and why it happens, but it does consistently. I ran my system with format_sql=true and opened the relevant log levels and here are the results:
A quick comparison shows that they are virtually identical. Furthermore, the INSERT statements are correct - first the base table is populated, then the assigned ID value is queried and finally the "sub-table" is populated using the correct ID (9 in the case of version 5.2.12 and 10 for version 5.2.17). |