Here's a patch that does essentially what Mike posted.
Eventually the "proper" way would be to parse the output of the SHOW ENGINES query.
Here's a patch that does essentially what Mike posted.
Eventually the "proper" way would be to parse the output of the SHOW ENGINES query.