Re: how to get JDBC driver version from command line

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: how to get JDBC driver version from command line
Date: 2015-04-02 17:59:50
Message-ID: 551D8396.90907@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 4/2/2015 9:26 AM, akshunj wrote:
> Is there a way to get the JDBC driver version from the command line? I'd
> like to make the name generic for various administrative reasons.
>
> I suspect this could be done using something along the lines of:
>
> java -cp ./postgresql.jdbc4.jar org.postgresql.Driver -version
>
> I'm not fluent in Java, so I would appreciate any help.

pretty sure you'd need a java application that calls the
getMajorVersion() and getMinorVersion() methods of the driver. don't
think there's any way to do that from a command line.

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2015-04-02 18:05:04 Re: how to get JDBC driver version from command line
Previous Message akshunj 2015-04-02 16:26:34 how to get JDBC driver version from command line