Skip to content

Commit f69ce5a

Browse files
committed
Prepare release 4.11.0
also fix incorrect consistency level used on simple prepared statements: if a custom consistency level is specified it was ignored when executing non-batch prepared statements
1 parent 8064a2b commit f69ce5a

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Diff for: CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to
55
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
7+
## [4.11.0] - 2023-12-03
88
### Added
99
- Add support for connections with multiple contact points using different ports (see feature request
1010
[#41](https://github.com/ing-bank/cassandra-jdbc-wrapper/issues/41)).
@@ -48,6 +48,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
4848
- Fix issue [#39](https://github.com/ing-bank/cassandra-jdbc-wrapper/issues/39): return `false` when the method
4949
`isSearchable(int)` is called on the metadata of a result set without table or schema name (typically on
5050
`CassandraMetadataResultSet`s).
51+
- Fix incorrect consistency level used to execute simple prepared statements.
5152
- Fix issue preventing to retrieve the metadata of an empty `CassandraMetadataResultSet`.
5253
- Add null safety on some methods of `CassandraResultSet` and `CassandraMetadataResultSet`.
5354

@@ -218,6 +219,7 @@ For this version, the changelog lists the main changes comparatively to the late
218219
- Fix logs in `CassandraConnection` constructor.
219220

220221
[original project]: https://github.com/adejanovski/cassandra-jdbc-wrapper/
222+
[4.11.0]: https://github.com/ing-bank/cassandra-jdbc-wrapper/compare/v4.10.2...v4.11.0
221223
[4.10.2]: https://github.com/ing-bank/cassandra-jdbc-wrapper/compare/v4.10.1...v4.10.2
222224
[4.10.1]: https://github.com/ing-bank/cassandra-jdbc-wrapper/compare/v4.10.0...v4.10.1
223225
[4.10.0]: https://github.com/ing-bank/cassandra-jdbc-wrapper/compare/v4.9.1...v4.10.0

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ See the "Usage" section below for further details about the allowed parameters i
106106
For further details about Liquibase usage, please check the
107107
[official documentation](https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/cassandra/).
108108

109+
> _Note:_ The version 4.25.0 of Liquibase extension for Cassandra is currently affected by an issue preventing it
110+
> working correctly. See [this issue](https://github.com/liquibase/liquibase-cassandra/issues/242) for further
111+
> information.
112+
109113
## Usage
110114

111115
Connect to a Cassandra cluster using the following arguments:

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.ing.data</groupId>
77
<artifactId>cassandra-jdbc-wrapper</artifactId>
8-
<version>4.10.2</version>
8+
<version>4.11.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>Cassandra JDBC Wrapper</name>

Diff for: src/main/java/com/ing/data/cassandra/jdbc/CassandraPreparedStatement.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ private void doExecute() throws SQLException {
213213
}
214214
// Force paging to avoid timeout and node harm.
215215
if (this.boundStatement.getPageSize() == 0) {
216-
this.boundStatement.setPageSize(DEFAULT_FETCH_SIZE);
216+
this.boundStatement = this.boundStatement.setPageSize(DEFAULT_FETCH_SIZE);
217217
}
218-
this.boundStatement.setConsistencyLevel(this.connection.getDefaultConsistencyLevel());
218+
this.boundStatement = this.boundStatement.setConsistencyLevel(this.connection.getDefaultConsistencyLevel());
219219
for (int i = 0; i < getBoundStatementVariableDefinitions().size(); i++) {
220220
// Set parameters to null if unset.
221221
if (!this.boundStatement.isSet(i)) {

0 commit comments

Comments
 (0)