cogDisplays the JDBC driver version
Developed by

Vincent Massol

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1

Description

This snippet requires Programming Rights
{{groovy}}
def session = xwiki.getXWiki().getStore().getStore().getSessionFactory().openSession()
println session.connection().getMetaData().getDriverVersion()
session.close()
{{/groovy}}

For example you'll get: mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100 (Fri, 09 Mar 2007) $, $Revision: 6341 $ )

Prerequisites & Installation Instructions

Copy the code snippet to a page and save it.

Created by Vincent Massol on 2012/02/15 15:28
     

Get Connected