Juergen Hoeller
24df35c55a
Do not keep target connection after failed settings
...
Includes aligned setReadOnly exception suppression.
Closes gh-35980
(cherry picked from commit ab33000750 )
2025-12-09 13:01:36 +01:00
Juergen Hoeller
e7a5452a14
Consistent namespace element declarations
...
(cherry picked from commit f58d0f6aae )
2025-11-26 15:14:31 +01:00
Juergen Hoeller
ab96576e67
Expose non-existent resources at the end of the sorted result
...
Closes gh-35895
(cherry picked from commit c1b6bfb681 )
2025-11-26 15:14:28 +01:00
Sébastien Deleuze
1bdd8337c6
Update outdated comments in JdbcOperationsExtensions.kt
2025-11-20 09:55:10 +01:00
Juergen Hoeller
bd10b7ae06
Remove javadoc references to deprecated PropertiesBeanDefinitionReader
...
Closes gh-35836
(cherry picked from commit 35b8fbf901 )
2025-11-19 16:21:33 +01:00
Juergen Hoeller
a33027703d
Preserve Connection readOnly state for defaultReadOnly DataSource
...
Includes DataSourceTransactionManagerTests alignment with main branch.
Closes gh-35743
2025-11-02 17:28:12 +01:00
Juergen Hoeller
5471961f06
Restore exposure of original BatchUpdateException as root cause
...
Closes gh-35717
See gh-35547
2025-10-30 14:59:00 +01:00
Park Juhyeong
4b7b280ac3
Optimize resource URL resolution in SortedResourcesFactoryBean
...
Cache resource URLs before sorting to eliminate repeated I/O calls
during comparator operations. The previous implementation called
getURL() multiple times per resource during sorting (O(n log n)
calls), and silently swallowed IOExceptions by returning 0,
potentially causing unstable sort results.
This change:
- Caches URLs once per resource before sorting (O(n) I/O calls)
- Removes unnecessary ArrayList conversions
- Provides clear exception handling with context
- Improves performance by ~70% for typical use cases
Signed-off-by: Park Juhyeong <wngud5957@naver.com >
2025-10-28 20:30:33 +01:00
Sam Brannen
bccfbfd630
Fix previous commit for 6.2.x compatibility
...
See gh-35674
2025-10-21 15:37:35 +02:00
Brian Clozel
506b76032f
Add missing reflection hints for JdbcUtils
...
This commit adds the missing reflection hints for `JdbcUtils`, as this
class reflects on `java.sql.Types` public fields.
Fixes gh-35674
2025-10-21 13:50:13 +02:00
Juergen Hoeller
6c5de48059
Ignore SQL state 3B001 in HSQLDB exception message as well
...
Closes gh-35618
See gh-35564
2025-10-13 15:10:20 +02:00
Juergen Hoeller
c2a66e723f
Polishing
2025-10-09 20:34:03 +02:00
Juergen Hoeller
2ee34a5632
Add MySQLTableMetaDataProvider for correct generated-keys support
...
Closes gh-35593
2025-10-09 20:30:25 +02:00
Juergen Hoeller
332953c9a4
Align BatchUpdateException handling among SQLExceptionTranslator variants
...
Closes gh-35547
2025-10-03 14:51:15 +02:00
Juergen Hoeller
d484e4f3ff
Ignore SQL state 3B001 in releaseSavepoint (for HSQLDB)
...
Closes gh-35564
2025-10-02 13:01:30 +02:00
Lukáš Kvídera
db9e938ec4
Detect Informix error codes as DuplicateKeyException
...
Closes gh-35400
Signed-off-by: Lukáš Kvídera <kvideral@qwsome.eu >
2025-09-03 16:20:19 +02:00
Sam Brannen
37b076be51
Support multiple result sets in ScriptUtils.executeSqlScript()
...
Prior to this commit, ScriptUtils.executeSqlScript() treated every
statement within the script as if it were a single insert/update/delete
statement. This disregarded the fact that the execution of a JDBC
Statement can result in multiple individual statements, some of which
result in a ResultSet and others that result in an update count.
For example, when executing a stored procedure on Sybase, ScriptUtils
did not execute all statements within the stored procedure.
To address that, this commit revises the implementation of
ScriptUtils.executeSqlScript() so that it handles multiple results and
differentiates between result sets and update counts.
Closes gh-35248
2025-08-11 17:44:39 +03:00
Juergen Hoeller
f3832c7262
Add note on SQL types with SqlBinaryValue/SqlCharacterValue
...
Closes gh-34786
2025-07-28 22:06:38 +02:00
Juergen Hoeller
16e99f289c
Accept support for generated keys column name array on HSQLDB/Derby
...
Closes gh-34790
2025-07-28 22:04:18 +02:00
Juergen Hoeller
642e554c52
Process PostgreSQL-returned catalog/schema names in given case
...
Closes gh-35064
2025-07-28 20:28:45 +02:00
Juergen Hoeller
65e5c14245
Polishing
2025-07-04 18:20:27 +02:00
Juergen Hoeller
e33adadc62
Detect SQL state 57014 as QueryTimeoutException
...
Closes gh-35073
2025-06-18 12:20:09 +02:00
Sam Brannen
103a7e58bb
Apply consistent copyright headers in Kotlin source code
...
See gh-35070
2025-06-17 15:54:58 +02:00
Spring Builds
aee29b7f30
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
2025-06-17 15:54:58 +02:00
Sam Brannen
2f60083cd5
Add integration tests for reused named parameters from bean properties
...
See gh-34768
2025-04-22 12:45:35 +02:00
Sam Brannen
018d3c9ef2
Add integration tests for reused named parameters
...
See gh-34768
2025-04-17 15:48:24 +02:00
Juergen Hoeller
eea6addd26
Avoid lenient locking for additional external bootstrap threads
...
Includes spring.locking.strict revision to differentiate between true, false, not set.
Includes checkFlag accessor on SpringProperties, also used in StatementCreatorUtils.
Closes gh-34729
See gh-34303
2025-04-10 18:33:21 +02:00
Juergen Hoeller
cc5ae23915
Suppress rollback attempt in case of timeout (connection closed)
...
Closes gh-34714
2025-04-05 16:03:31 +02:00
Juergen Hoeller
47651350f3
Polishing
2025-03-21 10:58:40 +01:00
Sam Brannen
c6a9aa59a3
Remove BDDMockito Checkstyle rule
...
This commit removes the BDDMockito Checkstyle rule, since it did not
actually enforce the use of BDDMockito.
This commit also updates static imports to use Mockito instead of
BDDMockito where appropriate (automated via the Eclipse IDE Organize
Imports clean-up task).
Closes gh-34616
2025-03-18 16:35:57 +01:00
Sam Brannen
30d793cefe
Revise deprecation of SqlQuery.rowsExpected
...
Closes gh-34526
2025-03-03 14:33:19 +01:00
Yanming Zhou
78cc5df748
Deprecate unused "rowsExpected" property of SqlQuery for removal
...
See gh-34526
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com >
2025-03-03 14:33:14 +01:00
Juergen Hoeller
c64dae3623
Avoid getTargetConnection call on transaction-aware Connection close
...
Closes gh-34484
2025-02-28 14:12:51 +01:00
Juergen Hoeller
25287205ba
Use ReentrantLock for compilation without synchronization
...
Closes gh-34133
2025-01-12 18:11:47 +01:00
Juergen Hoeller
2bb4df79c3
Ignore SQLServerException with "not supported" message
...
Closes gh-34233
2025-01-12 18:08:54 +01:00
youable
5494d78018
Polish
...
See gh-33891
2024-12-10 07:47:42 +01:00
Juergen Hoeller
307411631d
Ignore SQLFeatureNotSupportedException on releaseSavepoint
...
Closes gh-33987
2024-12-04 16:38:57 +01:00
Sam Brannen
f5c3f3522e
Simplify @EnumSource usage
2024-11-18 14:12:13 +01:00
Sam Brannen
d92c57f7a5
Merge branch '6.1.x'
2024-11-13 14:23:52 +01:00
Sam Brannen
4d792d0e45
Remove mentions of Joda-Time support
...
Since Joda-Time support was removed in Spring Framework 6.0, this commit
removes obsolete mentions of Joda-Time in the reference guide and Javadoc.
See gh-27426
Closes gh-33881
2024-11-13 14:16:14 +01:00
Sam Brannen
e3301dd1c4
Merge branch '6.1.x'
2024-11-03 16:17:43 +01:00
Sam Brannen
6bd4687706
Update copyright headers
...
See gh-33839
2024-11-03 16:14:41 +01:00
Tran Ngoc Nhan
07b12666b4
Fix typos in Javadoc and variable names
...
Closes gh-33839
2024-11-03 16:13:50 +01:00
Juergen Hoeller
e89218b39a
Merge branch '6.1.x'
2024-10-16 13:46:22 +02:00
Juergen Hoeller
11d4272ff4
Use Locale.ROOT consistently for toLower/toUpperCase
...
Closes gh-33708
2024-10-16 13:36:23 +02:00
Yanming Zhou
8941e2876e
Replace 'e.g.' with 'for example' in documentation and comments
...
Closes gh-33515
2024-09-26 14:11:17 +02:00
Juergen Hoeller
df5489b81a
Introduce optionalValue() method on ResultQuerySpec
...
Closes gh-33560
2024-09-20 19:16:02 +02:00
Sam Brannen
d749d2949d
Use new features from JUnit Jupiter 5.11
...
This commit primarily migrates to the new argumentSet() feature but also
applies additional polishing to our use of parameterized tests.
See gh-33395
2024-08-16 13:48:19 +02:00
Stéphane Nicoll
e27192e8ad
Merge branch '6.1.x'
2024-08-12 11:02:07 +02:00
Stéphane Nicoll
749145be2a
Polish "Fix predicate setup in test"
...
See gh-33368
2024-08-12 10:29:34 +02:00