Further, both the 1.1.7 and 2.0.0 rlm_sqlippool modules output "database query error" when something goes wrong, and I think it'd be really handy to have it output the sql_error() result as well, since I just personally learnt the hard way that 1142 is MySQL for "permission error".
Yes. This needs to be done.
The 1.1.7 rlm_sqlippool indirection patch is at [1], and a port to 2.0.0 should be pretty easy, and I'm happy to knock up a quick patch for the sql_error if the module owner doesn't have the time, although as I say I'm not in a position to test them.
I suppose you could call me the module owner, however unfortunately I haven't had much time to devote to FreeRADIUS of late aside from skimmin the list mails. If you knock up a patch, I promise to make some time to test it though :-) Cheers -- Peter Nixon http://peternixon.net/