Skip to content

Commit d9b3688

Browse files
committed
Merge branch 'release/3.3.0'
2 parents 706016b + 7ef158f commit d9b3688

File tree

351 files changed

+4036
-3373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

351 files changed

+4036
-3373
lines changed

.travis.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ language: java
44
services:
55
- docker
66
- mysql
7-
jdk: openjdk11
7+
jdk: openjdk17
88
addons:
99
hosts:
1010
- mariadb.example.com
@@ -48,8 +48,6 @@ jobs:
4848
- env: srv=build
4949
- env: srv=xpand TEST_DB_OTHER="&initSql=SET NAMES UTF8"
5050
- env: srv=mariadb-es local=1
51-
- env: srv=skysql
52-
- env: srv=skysql-ha
5351
include:
5452
- stage: Minimal
5553
env: srv=mariadb v=10.6 packet=8
@@ -75,10 +73,6 @@ jobs:
7573
name: "Maxscale"
7674
- env: srv=xpand TEST_DB_OTHER="&initSql=SET NAMES UTF8"
7775
name: "Xpand"
78-
- env: srv=skysql
79-
name: "SkySQL"
80-
- env: srv=skysql-ha
81-
name: "SkySQL with replication"
8276

8377
- stage: Community
8478
env: srv=mariadb v=10.6
@@ -99,11 +93,11 @@ jobs:
9993
name: "CS 10.11"
10094
- env: srv=mariadb v=11.0 local=1
10195
name: "CS 11.0"
102-
- env: srv=mariadb v=11.1-rc local=1
96+
- env: srv=mariadb v=11.1 local=1
10397
name: "CS 11.1"
10498
- env: srv=mariadb v=10.6 packet=40
105-
jdk: openjdk17
106-
name: "CS 10.6 - openjdk 17"
99+
jdk: openjdk11
100+
name: "CS 10.6 - openjdk 11"
107101
- env: srv=mariadb v=10.6 packet=8
108102
name: "CS 10.6 - packet 8M"
109103
- env: srv=mariadb v=10.6 local=1 BENCH=1

CHANGELOG.md

+443-235
Large diffs are not rendered by default.

CONTRIBUTING.md

+43-30
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,80 @@
11
# Contributing
22

3-
Each pull request should address a single issue, and contain both the fix and a description of how the pull request and tests that validate that the PR fixes the issue in question.
3+
Each pull request should address a single issue, and contain both the fix and a description of how the pull request and
4+
tests that validate that the PR fixes the issue in question.
45

5-
For significant feature additions, we like to have an open issue in [MariaDB JIRA](https://mariadb.atlassian.net/secure/RapidBoard.jspa?projectKey=CONJ). It is expected that discussion will have taken place in the attached issue.
6+
For significant feature additions, we like to have an open issue
7+
in [MariaDB JIRA](https://mariadb.atlassian.net/secure/RapidBoard.jspa?projectKey=CONJ). It is expected that discussion
8+
will have taken place in the attached issue.
69

710
# Install Prerequisites
811

9-
These are the set of tools which are required in order to complete any build. Follow the links to download and install them on your own before continuing.
12+
These are the set of tools which are required in order to complete any build. Follow the links to download and install
13+
them on your own before continuing.
1014

1115
* At least one GPG Key see https://help.github.com/en/articles/generating-a-new-gpg-key
12-
* [Oracle JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html) ( with [JCE policies](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html) if using TLS/SSL)
16+
* [Oracle JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html) (
17+
with [JCE policies](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html) if using
18+
TLS/SSL)
1319
* IDE (eclipse / netbean / intelliJ) with maven and GIT plugins
1420

1521
# Fork source
1622

17-
Before downloading source, fork the project to your own repository, and use your repository as source.
23+
Before downloading source, fork the project to your own repository, and use your repository as source.
1824

1925
## Branch signification
2026

2127
* master : correspond to the last released version
2228
* develop : Develop new features for upcoming releases (compatible with java 8)
23-
* develop-jre6 : maintenance branch compatible with java 6 / 7
29+
* develop-jre6 : maintenance branch compatible with java 6 / 7
2430

2531
# Run local test
2632

2733
Before any submission :
28-
Run the test locally : by default, you need to have a MySQL/MariaDB server on localhost:3306 with a database named "testj" and a user root without password.
29-
so you can run
30-
34+
Run the test locally : by default, you need to have a MySQL/MariaDB server on localhost:3306 with a database named "
35+
testj" and a user root without password.
36+
so you can run
37+
3138
```script
32-
mvn test
39+
mvn test
3340
```
34-
35-
You can change this parameter by adding -DdbUrl parameter. like :
36-
41+
42+
You can change this parameter by adding -DdbUrl parameter. like :
43+
3744
```script
38-
mvn test -DdbUrl=jdbc:mariadb://127.0.0.1:3306/testj?user=root&password=*****
45+
mvn test -DdbUrl=jdbc:mariadb://127.0.0.1:3306/testj?user=root&password=*****
3946
```
40-
47+
4148
You can launch a specific test by adding -Dtest
4249

4350
```script
44-
mvn test -Dtest=org.mariadb.jdbc.JdbcParserTest
51+
mvn test -Dtest=org.mariadb.jdbc.JdbcParserTest
4552
```
46-
53+
4754
When all test are passing, you can package project.
48-
Additional tests , like javadoc formatting, code style validation will be done :
49-
55+
Additional tests , like javadoc formatting, code style validation will be done :
56+
5057
```script
51-
mvn package -Dmaven.test.skip=true
58+
mvn package -Dmaven.test.skip=true
5259
```
53-
60+
5461
If operation succeed, a new mariadb-java-client jar will be on the target folder.
55-
62+
5663
# Run travis test
57-
58-
You can activate travis to validate your repository.
59-
The advantage of travis compare to running test locally is that it will launch tests for a combination of those parameters :
64+
65+
You can activate travis to validate your repository.
66+
The advantage of travis compare to running test locally is that it will launch tests for a combination of those
67+
parameters :
6068

6169
jdk:
70+
6271
* oraclejdk8
63-
and if your work is on develop-jre6 branch
72+
and if your work is on develop-jre6 branch
6473
* openjdk6
6574
* openjdk7
6675

6776
server :
77+
6878
* MariaDB 5.5
6979
* MariaDB 10.0
7080
* MariaDB 10.1
@@ -73,17 +83,20 @@ server :
7383
* MySQL 5.7
7484

7585
max_allowed_packet : (this permit to check multipacket send)
86+
7687
* 8M
7788
* 20M
7889
* 40M
7990

80-
For that, you have to go on [travis website](https://travis-ci.org), connect with your github account, and activate your mariadb-connector-j repository.
81-
After this step, every push to your repository will launch a travis test.
91+
For that, you have to go on [travis website](https://travis-ci.org), connect with your github account, and activate your
92+
mariadb-connector-j repository.
93+
After this step, every push to your repository will launch a travis test.
8294

8395
## Submitting a request
8496

85-
When your repository has the correction/change done, you can submit a pull request by clicking the "Pull request" button on github.
86-
Please detail the operation done in your request.
97+
When your repository has the correction/change done, you can submit a pull request by clicking the "Pull request" button
98+
on github.
99+
Please detail the operation done in your request.
87100

88101
## License
89102

README.md

+24-20
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
<p align="center">
2-
<a href="https://mariadb.com/">
3-
<img src="https://mariadb.com/kb/static/images/logo-2018-black.png">
4-
</a>
1+
<p style="text-align: center;">
2+
<a href="https://mariadb.com/">
3+
<img alt="mariadb logo" src="https://mariadb.com/kb/static/images/logo-2018-black.png">
4+
</a>
55
</p>
66

77
# MariaDB java connector
88

9-
MariaDB java connector is a JDBC 4.2 compatible driver, used to connect applications developed in Java to MariaDB and MySQL databases. MariaDB Connector/J is LGPL licensed.
9+
MariaDB java connector is a JDBC 4.2 compatible driver, used to connect applications developed in Java to MariaDB and
10+
MySQL databases. MariaDB Connector/J is LGPL licensed.
1011

1112
Tracker link <a href="https://jira.mariadb.org/projects/CONJ/issues/">https://jira.mariadb.org/projects/CONJ/issues/</a>
1213

1314
## Status
15+
1416
[![Linux Build](https://travis-ci.com/mariadb-corporation/mariadb-connector-j.svg?branch=master)](https://app.travis-ci.com/github/mariadb-corporation/mariadb-connector-j)
1517
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.mariadb.jdbc/mariadb-java-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.mariadb.jdbc/mariadb-java-client)
1618
[![License (LGPL version 2.1)](https://img.shields.io/badge/license-GNU%20LGPL%20version%202.1-green.svg?style=flat-square)](http://opensource.org/licenses/LGPL-2.1)
@@ -21,43 +23,45 @@ Tracker link <a href="https://jira.mariadb.org/projects/CONJ/issues/">https://ji
2123
For java 8+ :
2224

2325
The driver (jar) can be downloaded from [mariadb connector download](https://mariadb.com/downloads/#connectors)
24-
or maven :
26+
or maven :
27+
2528
```script
2629
<dependency>
2730
<groupId>org.mariadb.jdbc</groupId>
2831
<artifactId>mariadb-java-client</artifactId>
29-
<version>3.2.0</version>
32+
<version>3.3.0</version>
3033
</dependency>
3134
```
3235

33-
3436
Development snapshot are available on sonatype nexus repository
37+
3538
```script
3639
<repositories>
37-
<repository>
38-
<id>sonatype-nexus-snapshots</id>
39-
<name>Sonatype Nexus Snapshots</name>
40-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
41-
</repository>
40+
<repository>
41+
<id>sonatype-nexus-snapshots</id>
42+
<name>Sonatype Nexus Snapshots</name>
43+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
44+
</repository>
4245
</repositories>
4346
4447
<dependencies>
45-
<dependency>
46-
<groupId>org.mariadb.jdbc</groupId>
47-
<artifactId>mariadb-java-client</artifactId>
48-
<version>3.2.1-SNAPSHOT</version>
49-
</dependency>
48+
<dependency>
49+
<groupId>org.mariadb.jdbc</groupId>
50+
<artifactId>mariadb-java-client</artifactId>
51+
<version>3.4.0-SNAPSHOT</version>
52+
</dependency>
5053
</dependencies>
5154
```
5255

5356
## Documentation
5457

55-
For a Getting started guide, API docs, recipes, etc. see the
58+
For a Getting started guide, API docs, recipes, etc. see the
59+
5660
* [About MariaDB connector/J](https://mariadb.com/kb/en/about-mariadb-connector-j/)
5761
* [Install driver](https://mariadb.com/kb/en/installing-mariadb-connectorj/)
5862
* [Changelog](/CHANGELOG.md)
5963
* [Failover and high-availability](https://mariadb.com/kb/en/failover-and-high-availability-with-mariadb-connector-j/)
6064

61-
6265
[codecov-image]:https://codecov.io/gh/mariadb-corporation/mariadb-connector-j/branch/master/graph/badge.svg
66+
6367
[codecov-url]:https://codecov.io/gh/mariadb-corporation/mariadb-connector-j

bnd.bnd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Export-Package: org.mariadb.jdbc;org.mariadb.jdbc.client;org.mariadb.jdbc.client.util;org.mariadb.jdbc.client.socket;org.mariadb.jdbc.message;org.mariadb.jdbc.type;org.mariadb.jdbc.export;org.mariadb.jdbc.plugin;org.mariadb.jdbc.plugin.codec;org.mariadb.jdbc.plugin.authentication.standard;org.mariadb.jdbc.plugin.authentication.addon;org.mariadb.jdbc.plugin.credential.aws;org.mariadb.jdbc.plugin.credential.env;org.mariadb.jdbc.plugin.credential.system;org.mariadb.jdbc.plugin.tls.main
1+
Export-Package: org.mariadb.jdbc;org.mariadb.jdbc.client;org.mariadb.jdbc.client.util;org.mariadb.jdbc.util.constants;org.mariadb.jdbc.client.socket;org.mariadb.jdbc.message;org.mariadb.jdbc.type;org.mariadb.jdbc.export;org.mariadb.jdbc.plugin;org.mariadb.jdbc.plugin.codec;org.mariadb.jdbc.plugin.authentication.standard;org.mariadb.jdbc.plugin.authentication.addon;org.mariadb.jdbc.plugin.credential.aws;org.mariadb.jdbc.plugin.credential.env;org.mariadb.jdbc.plugin.credential.system;org.mariadb.jdbc.plugin.tls.main
22

33
Import-Package: \
44
javax.naming,\

licenseheader.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
2+
// Copyright (c) 2012-2014 Monty Program Ab
3+
// Copyright (c) 2015-2023 MariaDB Corporation Ab

pom.xml

+56-22
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@
77
<artifactId>mariadb-java-client</artifactId>
88
<packaging>jar</packaging>
99
<name>mariadb-java-client</name>
10-
<version>3.2.0</version>
10+
<version>3.3.0</version>
1111
<description>JDBC driver for MariaDB and MySQL</description>
1212
<url>https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/</url>
1313

1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
<jmh.version>1.34</jmh.version>
16+
<jmh.version>1.37</jmh.version>
1717
<junit.version>5.8.2</junit.version>
1818
<junit-pioneer.version>1.5.0</junit-pioneer.version>
1919
<assertj.version>3.22.0</assertj.version>
2020
<osgi.version>6.0.0</osgi.version>
2121
<osgi.compendium.version>5.0.0</osgi.compendium.version>
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2323
<logback.version>1.4.4</logback.version>
24-
<jacoco.version>0.8.8</jacoco.version>
25-
<waffle-jna.version>3.2.0</waffle-jna.version>
26-
<mysql-connector-java.version>8.0.31</mysql-connector-java.version>
24+
<jacoco.version>0.8.10</jacoco.version>
25+
<waffle-jna.version>3.3.0</waffle-jna.version>
26+
<mysql-connector-java.version>8.1.0</mysql-connector-java.version>
2727
<bnd-maven-plugin.version>6.3.1</bnd-maven-plugin.version>
28+
<spotless.version>2.40.0</spotless.version>
2829
</properties>
2930

3031
<licenses>
@@ -79,7 +80,7 @@
7980
<dependency>
8081
<groupId>software.amazon.awssdk</groupId>
8182
<artifactId>bom</artifactId>
82-
<version>2.18.10</version>
83+
<version>2.21.1</version>
8384
<type>pom</type>
8485
<scope>import</scope>
8586
</dependency>
@@ -231,24 +232,53 @@
231232
</execution>
232233
</executions>
233234
</plugin>
234-
235235
<plugin>
236-
<groupId>com.coveo</groupId>
237-
<artifactId>fmt-maven-plugin</artifactId>
238-
<version>2.13</version>
239-
<executions>
240-
<execution>
241-
<goals>
242-
<goal>format</goal>
243-
</goals>
244-
</execution>
245-
</executions>
236+
<groupId>com.diffplug.spotless</groupId>
237+
<artifactId>spotless-maven-plugin</artifactId>
238+
<version>${spotless.version}</version>
239+
<configuration>
240+
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
241+
<!-- <ratchetFrom>origin/src</ratchetFrom>-->
242+
<formats>
243+
<!-- you can define as many formats as you want, each is independent -->
244+
<format>
245+
<!-- define the files to apply to -->
246+
<includes>
247+
<include>*.md</include>
248+
<include>.gitignore</include>
249+
</includes>
250+
<!-- define the steps to apply to those files -->
251+
<trimTrailingWhitespace/>
252+
<endWithNewline/>
253+
<indent>
254+
<tabs>true</tabs>
255+
<spacesPerTab>2</spacesPerTab>
256+
</indent>
257+
</format>
258+
</formats>
259+
<java>
260+
<excludes>
261+
<exclude>src/main/java/org/mariadb/jdbc/plugin/authentication/standard/ed25519/**/*.java
262+
</exclude>
263+
<exclude>src/main/java/org/mariadb/jdbc/client/socket/impl/UnixDomainSocket.java</exclude>
264+
</excludes>
265+
<googleJavaFormat>
266+
<version>1.18.1</version>
267+
<style>GOOGLE</style>
268+
<reflowLongStrings>true</reflowLongStrings>
269+
<formatJavadoc>true</formatJavadoc>
270+
<groupArtifact>com.google.googlejavaformat:google-java-format</groupArtifact>
271+
</googleJavaFormat>
272+
<licenseHeader>
273+
<file>${project.basedir}/licenseheader.txt</file>
274+
</licenseHeader>
275+
</java>
276+
</configuration>
246277
</plugin>
247-
248278
<plugin>
249279
<groupId>org.apache.maven.plugins</groupId>
250280
<artifactId>maven-surefire-plugin</artifactId>
251-
<version>3.0.0-M7</version>
281+
<version>3.1.2</version>
252282
</plugin>
253283

254284
<plugin>
@@ -390,11 +420,15 @@
390420
</dependency>
391421

392422
<dependency>
393-
<groupId>mysql</groupId>
394-
<artifactId>mysql-connector-java</artifactId>
423+
<groupId>com.mysql</groupId>
424+
<artifactId>mysql-connector-j</artifactId>
395425
<version>${mysql-connector-java.version}</version>
396426
</dependency>
397-
427+
<dependency>
428+
<groupId>com.zaxxer</groupId>
429+
<artifactId>HikariCP</artifactId>
430+
<version>5.0.1</version>
431+
</dependency>
398432
</dependencies>
399433

400434
<build>

0 commit comments

Comments
 (0)