"Lost connection to mysql server during query" when Fetchall:=False

"Lost connection to mysql server during query" when Fetchall:=False

A year ago I posted a similar question on the old forum.
Now I think I can reproduce the error with a simple program.
I add a master and a detail table. When I set Fetchall to TRUE everything works fine when I delete the master row.
If I switch to Fetchall:=FALSE then I get this weired lost connection error.