SQL SECURITY DEFINER must enforce reduced rights too, not just additional rights.
Attach a file by drag & drop or click to upload