Closed GoogleCodeExporter closed 9 years ago
Thanks.
I should probably keep the old syntax available below the new one in the list,
for compatibility with old versions.
Original comment by evernat@free.fr
on 7 Mar 2012 at 11:17
Sure. Ideally javamelody would "discover" the version to determine the correct
syntax to use.
I think you would have to execute "select version()" and then could parse the
major version number (i.e 4 or 5) out of the string coming back and switch the
sql syntax accordingly.
DatabaseInformations.getDatabaseForConnection(Connection connection) method
seems like the right place to check
Any thoughts?
Original comment by mayna...@gmail.com
on 9 Mar 2012 at 8:52
It is now fixed in trunk (revision 2614) and ready for the next release (1.36).
Finally, it should be displayed simply as "innodb status" and compatible with
both mysql 4 and mysql 5 and 5.5.
And I have made a new build from the current trunk and it is available at:
http://javamelody.googlecode.com/files/javamelody-20120311b.jar
Original comment by evernat@free.fr
on 11 Mar 2012 at 4:55
And thanks.
Original comment by evernat@free.fr
on 11 Mar 2012 at 6:10
Original issue reported on code.google.com by
mayna...@gmail.com
on 7 Mar 2012 at 10:46