Johnny Lim
cc73ccefef
Polish
...
See gh-32696
2024-04-23 15:31:48 +02:00
Juergen Hoeller
c5590ae9e6
Log column type for limited support message in getResultSetValue
...
Closes gh-32601
2024-04-09 16:14:45 +02:00
Sébastien Deleuze
7a666cfd86
Revert some null-safety changes
...
This commit reverts some null-safety changes which make sense
on main but are too impactful for 6.1.x for Kotlin developers
using -Xjsr305=strict.
See gh-32475
2024-04-05 14:59:39 +02:00
Sébastien Deleuze
290a41d398
Refine null-safety in more modules
...
This commit refines the null-safety in all remaining modules
except spring-test.
See gh-32475
2024-03-26 15:39:18 +01:00
Sébastien Deleuze
1b563f8ba4
Refine null-safety in more modules
...
This commit refines the null-safety in:
- spring-jdbc
- spring-r2dbc
- spring-orm
- spring-beans
- spring-aop
See gh-32475
2024-03-26 09:46:34 +01:00
Juergen Hoeller
c531a8a705
Nullability refinements and related polishing
...
See gh-32475
2024-03-19 09:58:44 +01:00
Juergen Hoeller
4dc3eac864
Polishing
2024-02-22 16:56:22 +01:00
Stéphane Nicoll
5d6501c75e
Revisit stored procedure detection
...
This commit revisits the improved detection algorithm for stored
procedure as, unfortunately, certain JDBC drivers do not support
the documented pattern for schema and procedure name.
To work around this limitation, this commit applies the escaping of
wildcard characters to the case where multiple procedures have been
found for a given search.
Closes gh-32295
2024-02-21 15:54:34 +01:00
Juergen Hoeller
341ac76209
Rely on HashSet for uniqueness of mapped names
...
See gh-32199
2024-02-06 08:20:15 +01:00
Juergen Hoeller
8ff102115a
Let BeanPropertyRowMapper subclasses customize mapped names
...
Closes gh-32199
2024-02-05 18:24:38 +01:00
Juergen Hoeller
00577ed80a
Polishing
2024-01-31 17:12:20 +01:00
Juergen Hoeller
d586513d66
Introduce SqlBinaryValue/SqlCharacterValue as alternative to SqlLobValue
...
Includes direct byte array support via setBytes in StatementCreatorUtils.
Closes gh-32161
2024-01-31 17:12:05 +01:00
Juergen Hoeller
a44341ece3
Consistent method declaration order in Call/TableMetaDataProvider
2024-01-29 15:25:55 +01:00
Juergen Hoeller
2e9d6a1d4e
Polishing
2024-01-29 13:04:42 +01:00
Stéphane Nicoll
ad7c090f4c
Use catalog name in SimpleJdbcInsert
...
This commit harmonizes SimpleJdbcCall and SimpleJdbcInsert to
consistently use a catalog name if one is set. Previously,
SimpleJdbcInsert only used the catalog name to retrieve database
metadata.
Closes gh-32124
2024-01-26 17:58:41 +01:00
Juergen Hoeller
4d11307b84
Polishing
2024-01-09 11:55:04 +01:00
Stéphane Nicoll
3c5d46166e
Polish "Replace if with switch where feasible"
...
See gh-31916
2023-12-28 13:33:32 +01:00
Yanming Zhou
cfa3aa001f
Replace if with switch where feasible
...
See gh-31916
2023-12-28 13:29:50 +01:00
Stéphane Nicoll
7e5afc8bbb
Update copyright year of changed files
...
See gh-31913
2023-12-28 11:47:17 +01:00
Yanming Zhou
7474af4f09
Cleanup kotlin sources
...
1. remove unused import
2. remove redundant semicolon
3. remove redundant empty constructor and SAM-constructor
4. remove unnecessary type argument
5. adjust indent
See gh-31913
2023-12-28 11:46:47 +01:00
Juergen Hoeller
a428955438
Avoid unnecessary DatabasePopulator init/destroy processing
...
Closes gh-23405
2023-12-23 13:40:12 +01:00
Juergen Hoeller
a23375c49d
Document JDBC driver requirement for KeyHolder-based update methods
...
Closes gh-31486
2023-12-19 17:53:32 +01:00
Sam Brannen
b6364e3665
Polish Javadoc
2023-12-10 18:25:01 +01:00
Juergen Hoeller
77b0382a6c
Bypass getParameterType by default for PostgreSQL and SQL Server drivers
...
Closes gh-25679
2023-12-09 20:03:51 +01:00
Juergen Hoeller
69bc4e2828
Delegation support for JDBC 4.3 ConnectionBuilder and ShardingKeyBuilder
...
Also moves ShardingKeyProvider to datasource package and declares getSuperShardingKey as default method.
Closes gh-31795
See gh-31506
2023-12-08 23:52:22 +01:00
Mohammed Bekraoui
e4e2224449
Support direct shard database operation routing in Spring JDBC ( #31506 )
...
Introduce ShardingKeyDataSourceAdapter to get shard connections.
This commit introduces a DataSource proxy, that changes the behavior of the getConnection method to use the `createConnectionBuilder()` api to acquire direct shard connections. The shard connection is acquired by specifying a `ShardingKey` that is correspondent to the wanted shard.
2023-12-08 23:09:39 +01:00
Juergen Hoeller
afc1f37616
Support for SQL Server named parameter binding (aligned with Sybase)
...
Closes gh-26072
See gh-30231
2023-12-08 16:38:43 +01:00
Giuseppe Milicia
748dd94dab
Fix Sybase SimpleJdbcCall named parameter binding
2023-12-08 16:15:51 +01:00
Henning Poettker
b3a3b79b44
Adds MySQLIdentityColumnMaxValueIncrementer
...
The new `DataFieldMaxValueIncrementer` can be used with identity columns in MySQL 8.0 or later.
2023-12-08 16:12:29 +01:00
Juergen Hoeller
3b4c7a8906
Revise LazyConnectionDataSourceProxy for late connection properties check
...
Includes special support for a read-only DataSource in addition to the regular target DataSource, avoiding the overhead of switching the Connection's read-only flag at the beginning and end of every transaction.
Closes gh-29931
Closes gh-31785
Closes gh-19688
Closes gh-21415
2023-12-07 23:14:17 +01:00
Juergen Hoeller
47fe61ef79
Introduce lazyTransactionalConnections flag on TransactionAwareDataSourceProxy
...
Includes revision of JDBC transaction tests.
Closes gh-29423
2023-12-04 18:24:30 +01:00
Sam Brannen
cb60f74556
Stop referring to JDO PersistenceManager in comments
2023-12-04 16:50:53 +01:00
Sam Brannen
d71853f105
Polish contribution
...
See gh-31531
2023-12-04 16:47:25 +01:00
Yanming Zhou
490b5c77fc
Use switch expression where feasible
2023-12-04 15:42:55 +01:00
Juergen Hoeller
5f9702b2a4
Introduce rollbackBeforeClose property and AutoCloseable implementation
...
Closes gh-27249
2023-11-30 16:36:32 +01:00
Juergen Hoeller
6ff75f157b
Detect current schema as indicated by JDBC Connection
...
Closes gh-28723
2023-11-24 23:24:20 +01:00
Stéphane Nicoll
34031ebea9
Escape schema and function name patterns if necessary
...
The JDBC API that retrieves a proedure or a function allows to specify
patterns for the schema and the procedure name. So far, we've called
this API with the value as is, which does not work if either contains
a wildcard characters that need to be escaped.
This commit updates GenericCallMetadataProvider to escape, if necessary,
the schema or procedure name using the search string escape from the
database metadata.
Closes gh-22725
2023-11-24 15:49:41 +01:00
Juergen Hoeller
c60926476a
Polishing
2023-11-22 12:23:24 +01:00
Juergen Hoeller
0e6bf098cb
Merge branch '6.0.x'
...
# Conflicts:
# build.gradle
# framework-platform/framework-platform.gradle
# spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java
2023-11-15 13:36:03 +01:00
Juergen Hoeller
c373f496f3
Consistent ordering of overloaded operations
2023-11-15 13:29:35 +01:00
Juergen Hoeller
01fc1ee3bb
Introduce update variant with KeyHolder and explicit key column names
...
Closes gh-31607
2023-11-15 12:20:22 +01:00
Juergen Hoeller
2b7a9209b3
Merge branch '6.0.x'
2023-11-14 12:52:25 +01:00
Juergen Hoeller
99327b7db1
Preserve nested square brackets within parameter name
...
Closes gh-31596
2023-11-14 12:51:19 +01:00
Stéphane Nicoll
f5453cc445
Polish
2023-11-10 16:42:43 +01:00
Juergen Hoeller
6c00e6162b
Merge branch '6.0.x'
...
# Conflicts:
# framework-platform/framework-platform.gradle
# spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericCallMetaDataProvider.java
2023-11-09 11:50:55 +01:00
Juergen Hoeller
9957bb6918
Check for procedure vs function constants in CallMetaDataContext
...
Closes gh-31550
2023-11-09 10:52:51 +01:00
Sam Brannen
9759bf5964
Merge branch '6.0.x'
2023-11-07 17:13:46 +01:00
Sam Brannen
c5bcfc7682
Polish contribution
...
See gh-31554
2023-11-07 17:08:44 +01:00
Stéphane Nicoll
c30b3796f2
Merge branch '6.0.x'
2023-11-07 10:37:22 +01:00
Fabrizio De Felice
fcd4ba2f1f
Add SAP HANA duplicate key exception error code
...
See gh-31554
2023-11-07 10:27:51 +01:00