Return inserted entity in mysql stored procedure
That's not using &quot;prepare&quot; to do the escaping.  Put the IN parameter in the EXECUTE.

Please don't name parameters with @ -- it is too confusing with @variables.  I like to prefix in args with _.

A UUID is 36 characters; The binary equivalent is BINARY(16).  Your VARCHAR(32) does not agree with &quot;I use Binary uuid for having more security&quot;.