Mercurial > hg > monetdb-java
view src/main/java/org/monetdb/jdbc/MonetVersion.java.in @ 921:41d0cce6d2df
Use new con.checkMinimumDBVersion() method.
Also used it in the implementation of getClientInfoProperties() as it queries new system table sys.clientinfo_properties.
Optimised the used query in getClientInfoProperties() and added a default query returning no rows for older servers.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 25 Jul 2024 20:22:29 +0200 (8 months ago) |
parents | e890195256ac |
children | d416e9b6b3d0 |
line wrap: on
line source
/* * SPDX-License-Identifier: MPL-2.0 * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright 2024 MonetDB Foundation; * Copyright August 2008 - 2023 MonetDB B.V.; * Copyright 1997 - July 2008 CWI. */ package org.monetdb.jdbc; final class MonetVersion { /** * Major version of MonetDB JDBC driver. */ public static int majorVersion = @JDBC_MAJOR@; /** * Minor version of MonetDB JDBC driver. */ public static int minorVersion = @JDBC_MINOR@; /** * Full version string of MonetDB JDBC driver. */ public static String driverVersion = "@JDBC_MAJOR@.@JDBC_MINOR@ (@JDBC_VER_SUFFIX@)"; }