Changeset: 1f0e1a0e2226 for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/1f0e1a0e2226
Added Files:
src/test/java/org/monetdb/mcl/net/ControlTester.java
Modified Files:
.github/workflows/testjars.yml
pom.xml
src/main/java/org/monetdb/jdbc/MonetConnection.java
src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java
src/main/java/org/monetdb/jdbc/MonetDriver.java
src/test/java/JDBC_API_Tester.java
src/test/java/org/monetdb/jdbc/FileTransferHandlerTests.java
Branch: mvn
Log Message:
Merge 'default' into 'mvn'
diffs (truncated from 1766 to 300 lines):
diff --git a/.github/workflows/testjars.yml b/.github/workflows/testjars.yml
--- a/.github/workflows/testjars.yml
+++ b/.github/workflows/testjars.yml
@@ -76,9 +76,13 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
- java: # not sure, let's test with 8 and the latest
+ java: # do we really need to test all these versions?
- 8
+ #- 11
+ #- 17
+ #- 21
- 24
+ #- 25
include:
# override java-dist only for java 8
- java: 8
@@ -115,18 +119,32 @@ jobs:
strategy:
fail-fast: false
matrix:
- monetdb:
- - Jan2022
- - Sep2022
- - Jun2023
- - Dec2023
- - Aug2024
- - Mar2025
+ monetdb_image:
+ # See https://hub.docker.com/r/monetdb/monetdb/tags for docker image
names of official MonetDB releases
+ # See https://hub.docker.com/r/monetdb/dev-builds/tags for docker
image name of default branch
+ - "monetdb/dev-builds:default"
+ - "monetdb/monetdb:latest"
+ - "monetdb/monetdb:Mar2025-SP3"
+ # - "monetdb/monetdb:Mar2025-SP2"
+ # - "monetdb/monetdb:Mar2025-SP1"
+ # - "monetdb/monetdb:Mar2025"
+ - "monetdb/monetdb:Aug2024-SP2"
+ - "monetdb/monetdb:Dec2023-SP4"
+ - "monetdb/monetdb:Jun2023-SP3"
+ - "monetdb/monetdb:Sep2022-SP3"
+ - "monetdb/monetdb:Jan2022-SP4"
+ - "monetdb/monetdb:Jul2021-SP2"
+ # - Jan2022
+ # - Sep2022
+ # - Jun2023
+ # - Dec2023
+ # - Aug2024
+ # - Mar2025
# - default
runs-on: ubuntu-latest
services:
monetdb:
- image: monetdb/dev-builds:${{ matrix.monetdb }}
+ image: ${{ matrix.monetdb_image }}
env:
MDB_DAEMON_PASS: monetdb
MDB_DB_ADMIN_PASS: monetdb
@@ -169,6 +187,9 @@ jobs:
run: |
java -cp jars/'*' TLSTester -v $MONETDB_TLSTESTER
+ - name: Run ControlTester
+ run: java -cp jars/'*' ControlTester localhost monetdb
+
- name: Slow Tests
if: false
run: |
diff --git a/.hgtags b/.hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -9,3 +9,4 @@ a80b5db244b8ceeea936770b9c5f314d46251fb3
fd66573f88946b488e4f1f26db624d8f370aa5a8 v3.2
843f7d03540ab1170ce80d9e89993235b45d3ff9 v3.3
1a4014a0c0c8751c5a5ea9e1205f1aea22c9188b v12.0
+334a06e4f64cf25a612817684ad870622a674656 v12.1
diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,139 +1,13 @@
# ChangeLog file for monetdb-java
# This file is updated with Maddlog
-* Thu Jul 3 2025 Martin van Dinther <[email protected]>
-- Corrected output of columns SEARCHABLE and AUTO_INCREMENT of method
- DatabaseMetaData.getTypeInfo(). Most types are searchable with LIKE
- pattern matching. AUTO_INCREMENT is no longer true for base integer types.
-
-* Thu Feb 13 2025 Martin van Dinther <[email protected]>
-- Corrected the returned integer values of Statement methods
- getUpdateCount() and getLargeUpdateCount(). They returned -2 for
- DDL statements, which was not in compliance with the JDBC API
- documentation. Now they no longer return numbers smaller than -1.
-- Corrected the returned integer values of Statement methods
- executeUpdate(...) and executeLargeUpdate(...) and PreparedStatement
- methods executeUpdate() and executeLargeUpdate(). They returned -2 for
- DDL statements, which was not in compliance with the JDBC API
- documentation. Now they no longer return negative numbers.
-
-* Wed Feb 12 2025 Martin van Dinther <[email protected]>
-- Fix a bug in DatabaseMetaData.getTables() where a provided string in the
- array of table types argument would contain a single quote or back slash.
- It was not escaped properly, resulting in an SQL syntax error.
-- Fix missing escaping of single back slashes in string data provided to
- PreparedStatement methods setString(), setClob(), setObject() and setURL().
-
-* Thu Jan 16 2025 Martin van Dinther <[email protected]>
-- The release version number has been bumped to 12.0 to avoid confusion
- with historic 11.x versions.
-- Compiled and released new jar files: monetdb-jdbc-12.0.jre8.jar and
+* Thu Oct 2 2025 Martin van Dinther <[email protected]>
+- Compiled and released new jar files: monetdb-jdbc-12.1.jre8.jar and
jdbcclient.jre8.jar
-* Wed Jan 8 2025 Joeri van Ruth <[email protected]>
-- The JDBC jar now includes JdbcClient. For backward compatibility the jar
- is still also available as jdbcclient.jreX.jar.
-
-* Thu Nov 7 2024 Martin van Dinther <[email protected]>
-- In JdbcClient when running the \vsci or \vdbi or \vsi commands, we now
- suppress "42000 SELECT: insufficient privileges for ..." and
- "42000 SELECT: access denied for ..." error messages when the connected user
- does not have 'monetdb' or 'sysadmin' privileges, needed for some
validations.
-
-* Wed Jun 19 2024 Joeri van Ruth <[email protected]>
-- Implemented Connection#set/getClientInfo, and send sensible default info
- at connect time. This can be controlled with the properties
'client_info=on/off',
- 'client_application=ApplicationName' and 'client_remark=Other Useful Info'.
- Note setting client info requires MonetDB server 11.51 (Aug2024) or higher.
-
-* Thu Apr 4 2024 Martin van Dinther <[email protected]>
-- Corrected ResultSetMetaData methods getColumnTypeName(), getPrecision(),
- getColumnDisplaySize() and ParameterMetaData methods getParameterTypeName()
- and getPrecision() for the interval data types. They now return
- more precise information for the 13 possible interval data types.
-
-* Thu Mar 7 2024 Martin van Dinther <[email protected]>
-- Improved DatabaseMetaData.getTypeInfo(). It now also returns the serial
- and bigserial data types and all 13 possible interval data types.
-
-* Fri Jan 5 2024 Joeri van Ruth <[email protected]>
-- Network connections can now be encrypted with TLS by using jdbc:monetdbs://..
- instead of jdbc:monetdb://. The server is authenticated using the JVM's root
- certificate pool unless cert= or certhash= properties are given.
-- The syntax of the JDBC URL's has been updated to match the monetdb:// and
- monetdbs:// URL syntax introduced in MonetDB 11.51 (Aug2024), see
-
https://www.monetdb.org/documentation/user-guide/client-interfaces/monetdb-urls/.
- This adds a number of properties that can be set in the URL but is otherwise
- backward compatible except that percent sign are now used to escape other
characters.
- For example, the password '100%milk&cookies' can be passed as
- password=100%25milk%26cookies.
-
-* Thu Dec 28 2023 Martin van Dinther <[email protected]>
-- In ResultSet.getObject(column, Class<T> type) and
- ResultSet.getObject(column, Map<String,Class<?>>) methods added support
- to return objects for classes: java.time.LocalDate, java.time.LocalDateTime
- and java.time.LocalTime.
-
-* Wed Dec 20 2023 Martin van Dinther <[email protected]>
-- Enhanced DatabaseMetaData.getTables() method by adding support for SQL
- table type names: 'BASE TABLE', 'GLOBAL TEMPORARY' and 'LOCAL TEMPORARY'
- in parameter types[]. These are SQL synonyms of MonetDB table type names:
- 'TABLE', 'GLOBAL TEMPORARY TABLE' and 'LOCAL TEMPORARY TABLE'.
-
-* Thu Dec 14 2023 Martin van Dinther <[email protected]>
-- In ResultSet.getObject() method added support for retrieving
- TIMESTAMP WITH TIME ZONE data as java.time.OffsetDateTime object
- and TIME WITH TIME ZONE as java.time.OffsetTime object.
- Also methods ResultSetMetaData.getColumnClassName() and
- ParameterMetaData.getParameterClassName() now return
- java.time.OffsetDateTime.class for columns of type TIMESTAMP WITH TIME ZONE
- and java.time.OffsetTime.class for columns of type TIME WITH TIME ZONE.
-
-* Thu Oct 12 2023 Martin van Dinther <[email protected]>
-- Improved DatabaseMetaData.getSystemFunctions(). It now also returns
- functions: current_sessionid, greatest, ifnull, least, sql_max, sql_min.
- Function ifnull will only be returned for servers Jun2023 (11.47 or higher).
-
-* Wed Aug 9 2023 Martin van Dinther <[email protected]>
-- Implemented ResultSet methods:
- <T> T getObject(int columnIndex, Class<T> type)
- <T> T getObject(String columnLabel, Class<T> type)
- They used to throw an SQLFeatureNotSupportedException.
-
-* Thu Jul 6 2023 Martin van Dinther <[email protected]>
-- Removed deprecated nl.cwi.monetdb.*.* classes and package.
- Those classes were marked deprecated on 12 Nov 2020 from
- release 3.0 (released on 17 Feb 2021) onwards. It includes:
- nl.cwi.monetdb.client.JdbcClient.class
- nl.cwi.monetdb.jdbc.MonetDriver.class
- nl.cwi.monetdb.jdbc.types.INET.class
- nl.cwi.monetdb.jdbc.types.URL.class
- nl.cwi.monetdb.mcl.net.MapiSocket.class
- These classes are now removed permanently.
- Use the org.monetdb.* equivalents instead.
-
-* Thu Jul 6 2023 Martin van Dinther <[email protected]>
-- Removed code to support old MonetDB servers Oct2014 or older. Those
- old servers did not yet have the system tables: sys.keywords and
- sys.table_types which are introduced in Jul2015 release. Those system
- tables are used by MonetDatabaseMetaData methods: getSQLKeywords(),
- getTableTypes() and getTables(). These 3 methods will now fail when
- used with those very old MonetDB servers.
-
-* Wed Jul 5 2023 Martin van Dinther <[email protected]>
-- Corrected implementation of Connection methods getClientInfo() and
- setClientInfo(). They used to get/set Connection properties instead of
- Client Info properties, which was incorrect.
-
-* Thu Jun 22 2023 Martin van Dinther <[email protected]>
-- Corrected DatabaseMetaData method getClientProperties().
- It used to return connection properties instead of client info properties.
-
-* Thu May 4 2023 Martin van Dinther <[email protected]>
-- Corrected DatabaseMetaData method getStringFunctions() when connected
- to Jun2023 server. It now includes the string functions from the new
- txtsim module.
-
For a complete list of changes in previous monetdb-java releases see:
https://www.monetdb.org/downloads/Java/archive/ChangeLog-Archive
+* Fri Jan 2 2026 Joeri van Ruth <[email protected]>
+- Fix backslash issues in ResultSetMetaData column names. (#11).
+
diff --git a/ChangeLog-Archive b/ChangeLog-Archive
--- a/ChangeLog-Archive
+++ b/ChangeLog-Archive
@@ -2,6 +2,65 @@
# This file contains all past monetdb-java ChangeLog entries
# For every new release the ChangeLog is prepended to this file.
+* Thu Oct 2 2025 Martin van Dinther <[email protected]>
+- Compiled and released new jar files: monetdb-jdbc-12.1.jre8.jar and
+ jdbcclient.jre8.jar
+
+* Thu Sep 18 2025 Martin van Dinther <[email protected]>
+- Added support for new MonetDB data types: inet4 and inet6.
+
+* Tue Sep 9 2025 Joeri van Ruth <[email protected]>
+- Fixed the 'debug' and 'logfile' properties. The log file was opened
+ but immediately closed again.
+- Made the log file name choosing algorithm more robust against race
+ conditions: instead of checking whether the intended file already exists
+ and opening it when it doesn't, open it in 'create' mode and handle
+ the error that gets thrown when it already exists.
+- conn.getMetaData().supportsTransactionIsolationLevel() now always
+ returns 'true' exept for level TRANSACTION_NONE. It used to return 'true'
+ only for TRANSACTION_SERIALIZABLE, but serializable actually implies
+ the other levels. Matches the behavior of PostgreSQL.
+
+* Mon Sep 1 2025 Joeri van Ruth <[email protected]>
+- Automatic compression and decompression in FileTransferHandler can now
+ be disabled by passing 'false' as the third constructor parameter.
+
+* Thu Jul 3 2025 Martin van Dinther <[email protected]>
+- Corrected output of columns SEARCHABLE and AUTO_INCREMENT of method
+ DatabaseMetaData.getTypeInfo(). Most types are searchable with LIKE
+ pattern matching. AUTO_INCREMENT is no longer true for base integer types.
+
+* Fri Apr 4 2025 Joeri van Ruth <[email protected]>
+- Improve error message when server closes the connection immediately after
+ accepting it.
+
+* Wed Mar 31 2025 Joeri van Ruth <[email protected]>
+- Fixed more result set leaks.
+
+* Wed Feb 26 2025 Joeri van Ruth <[email protected]>
+- Properties 'clientkey' and 'clientcert' are no longer included in the
+ result of Driver#getPropertyInfo() because though the driver recognizes
+ them, it does not support them.
+- Fixed a number of result set leak when Statement#setMaxRows was called.
+
+* Thu Feb 13 2025 Martin van Dinther <[email protected]>
+- Corrected the returned integer values of Statement methods
+ getUpdateCount() and getLargeUpdateCount(). They returned -2 for
+ DDL statements, which was not in compliance with the JDBC API
+ documentation. Now they no longer return numbers smaller than -1.
+- Corrected the returned integer values of Statement methods
+ executeUpdate(...) and executeLargeUpdate(...) and PreparedStatement
+ methods executeUpdate() and executeLargeUpdate(). They returned -2 for
+ DDL statements, which was not in compliance with the JDBC API
+ documentation. Now they no longer return negative numbers.
+
+* Wed Feb 12 2025 Martin van Dinther <[email protected]>
+- Fix a bug in DatabaseMetaData.getTables() where a provided string in the
+ array of table types argument would contain a single quote or back slash.
+ It was not escaped properly, resulting in an SQL syntax error.
+- Fix missing escaping of single back slashes in string data provided to
+ PreparedStatement methods setString(), setClob(), setObject() and setURL().
+
* Thu Jan 16 2025 Martin van Dinther <[email protected]>
- The release version number has been bumped to 12.0 to avoid confusion
with historic 11.x versions.
diff --git a/pom.xml b/pom.xml
--- a/pom.xml
+++ b/pom.xml
@@ -4,12 +4,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]