You could probably try a query like 'SELECT 1;' and see if it succeeds.
Thomas.
-- Thomas(dot)Quinot(at)Cuivre(dot)FR(dot)EU(dot)ORG