public class MInformation extends MObject {
- public static final String MACACO_VERSION = "4.x";
+ public static final String MACACO_VERSION = "4.2";
public static final String TEXT_ENCODING = "UTF-8";
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
+import java.util.LinkedHashMap;
import java.util.LinkedList;
public class MDatabaseConnection extends MObject {
}
}
+ /* Engine version. */
+
+ public String getEngineVersion() throws MSqlStatementException {
+ MSqlStatementResults results = this.executePreparedStatement("SELECT VERSION()");
+ LinkedList<LinkedHashMap<String, Object>> resultList = results.getRecords();
+ //
+ return (String)resultList.get(0).get("VERSION()");
+ }
+
}