I have this procedure that works without any problem under MySQL:
fiddle
solution from here
I tried to add it to MariaDB 10.5 from within phpmyadmin - exactly like this, I just added DELIMITER ;;
in the first line and END;;
and DELIMITER ;
at the end.
After that MySQL returned an empty result set and everything looks ok, but only when calling the procedure there are already errors like these
I'm guessing that the problem occurs with the separators that make up the two SELECTs, but my ideas to fix it so far have yielded nothing.