Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
Unless someone on our team thinks of an incredibly creative solution, all of my work with triggers will need to be thrown away. I've used them previously, but only in our test database. Unfortunately, if you read the "create trigger" documentation carefully, it mentions a very interesting caveat:
In MySQL 5, prior to version 5.1.6, creating triggers required SUPER privileges (annoying, but I can live with that) and so does executing them.
We're on 5.0.45. Naturally, our production code is not going to run with SUPER privileges. Even if we were so foolish as to think this was a good idea (and yeah, go ahead and run Apache as root, will ya?), we share this database server with other teams who would strenuously object to our running as SUPER. Plus, upgrading to 5.1.6 means negotiating with all of those other teams. I don't think that's going to happen.
I have a lot of unpleasant work ahead of me ripping out triggers and reimplementing them in our DBIx::Class code
Aside from the fact that we're on an older version of MySQL, how on earth could the MySQL developers have thought that requiring SUPER privileges to run triggers was a good idea?
That's for CREATE, not running (Score:2)
Reading the docs, it seems like it's just for creating the triggers, not executing them.
Re: (Score:2)
Sorry, but not quite correct. It's a pain to read through, but this is the killer:
At trigger activation time, privileges are checked against the DEFINER user. This user must have these privileges:
That was not fun to track down, but there ya go.
Re: (Score:2)
Ugh, MySQL is _so_ lame.
Re: (Score:2)
Have you tested that? .. as it still seems to apply the privilege tests to the user that defined the trigger, rather than the user invoking it.
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re: (Score:1)
Like Teejay said, DEFINER
Are you seeing something we're missing?
Bartek Jakubski (Score:1)
use the sandbox (Score:1)
flamerobin.org
Finally! (Score:1)