* @return the version String mysql returns
* @throws TorqueException if the database is not mysql or the query fails.
*/
protected String getMysqlVersion() throws TorqueException
{
Adapter adapter
= Torque.getDatabase(Torque.getDefaultDB()).getAdapter();
if (!(adapter instanceof MysqlAdapter))
{
throw new TorqueException(
"getMysqlVersion called but database adapter is "
+ adapter.getClass().getName());
}
List<String> records = BasePeer.doSelect(
"show variables like \"version\"",
new StringMapper(1),
(String) null);