Stéphane Nicoll
87b35e7d8e
Polish
2 years ago
Stéphane Nicoll
534d3229fe
Polish
2 years ago
Stéphane Nicoll
3c5d46166e
Polish "Replace if with switch where feasible"
...
See gh-31916
2 years ago
Yanming Zhou
cfa3aa001f
Replace if with switch where feasible
...
See gh-31916
2 years ago
Stéphane Nicoll
7e5afc8bbb
Update copyright year of changed files
...
See gh-31913
2 years ago
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
2 years ago
Juergen Hoeller
a428955438
Avoid unnecessary DatabasePopulator init/destroy processing
...
Closes gh-23405
2 years ago
Juergen Hoeller
a23375c49d
Document JDBC driver requirement for KeyHolder-based update methods
...
Closes gh-31486
2 years ago
Sam Brannen
c0683cd30b
Update copyright headers
2 years ago
Sam Brannen
b6364e3665
Polish Javadoc
2 years ago
Juergen Hoeller
77b0382a6c
Bypass getParameterType by default for PostgreSQL and SQL Server drivers
...
Closes gh-25679
2 years ago
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
2 years ago
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.
2 years ago
Juergen Hoeller
afc1f37616
Support for SQL Server named parameter binding (aligned with Sybase)
...
Closes gh-26072
See gh-30231
2 years ago
Giuseppe Milicia
748dd94dab
Fix Sybase SimpleJdbcCall named parameter binding
2 years ago
Henning Poettker
b3a3b79b44
Adds `MySQLIdentityColumnMaxValueIncrementer`
...
The new `DataFieldMaxValueIncrementer` can be used with identity columns in MySQL 8.0 or later.
2 years ago
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
2 years ago
Sam Brannen
302cdeeee6
Clean up warnings in JdbcTransactionManagerTests
2 years ago
Yanming Zhou
afcd03bddc
Replace assertThat(x.isEmpty()).isTrue() with assertThat(x).isEmpty()
...
Search for : assertThat\((.+).isEmpty\(\)\).isTrue\(\)
Replace with : assertThat($1).isEmpty()
Search for : assertThat\((.+).isEmpty\(\)\).isFalse\(\)
Replace with : assertThat($1).isNotEmpty()
Closes gh-31758
2 years ago
Yanming Zhou
e2852e7355
Replace assertThat(x.contains(y)).isTrue() with assertThat(x).contains(y)
...
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isTrue\(\)
Replace with : assertThat($1).contains($2)
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isFalse\(\)
Replace with : assertThat($1).doesNotContain($2)
Closes gh-31762
2 years ago
Yanming Zhou
59815cefce
Replace assertThat(x.get(i)). with assertThat(x).element(i).
...
Search for : assertThat\((.+)\.get\((\d+)\)\)\.
Replace with : assertThat($1).element($2).
Closes gh-31759
2 years ago
Sam Brannen
ceba4162bb
Replace assertThat(!x).isTrue() with assertThat(x).isFalse()
...
Search for : assertThat\(!(.+)\).isTrue\(\)
Replace with : assertThat(\1).isFalse()
2 years ago
Juergen Hoeller
47fe61ef79
Introduce lazyTransactionalConnections flag on TransactionAwareDataSourceProxy
...
Includes revision of JDBC transaction tests.
Closes gh-29423
2 years ago
Sam Brannen
cb60f74556
Stop referring to JDO PersistenceManager in comments
2 years ago
Sam Brannen
d71853f105
Polish contribution
...
See gh-31531
2 years ago
Yanming Zhou
490b5c77fc
Use switch expression where feasible
2 years ago
Sam Brannen
6ea9fdbf77
Polishing
2 years ago
Juergen Hoeller
edfe179291
Polishing
2 years ago
Juergen Hoeller
5f9702b2a4
Introduce rollbackBeforeClose property and AutoCloseable implementation
...
Closes gh-27249
2 years ago
Juergen Hoeller
6ff75f157b
Detect current schema as indicated by JDBC Connection
...
Closes gh-28723
2 years ago
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
2 years ago
Juergen Hoeller
c60926476a
Polishing
2 years ago
Juergen Hoeller
c373f496f3
Consistent ordering of overloaded operations
2 years ago
Juergen Hoeller
01fc1ee3bb
Introduce update variant with KeyHolder and explicit key column names
...
Closes gh-31607
2 years ago
Juergen Hoeller
99327b7db1
Preserve nested square brackets within parameter name
...
Closes gh-31596
2 years ago
Stéphane Nicoll
f5453cc445
Polish
2 years ago
Juergen Hoeller
9957bb6918
Check for procedure vs function constants in CallMetaDataContext
...
Closes gh-31550
2 years ago
Sam Brannen
c5bcfc7682
Polish contribution
...
See gh-31554
2 years ago
Sam Brannen
5752e03d97
Polishing
2 years ago
Stéphane Nicoll
50e55d5219
Polish "Add SAP HANA duplicate key exception error code"
...
See gh-31554
2 years ago
Fabrizio De Felice
fcd4ba2f1f
Add SAP HANA duplicate key exception error code
...
See gh-31554
2 years ago
Sam Brannen
54839a7126
Test quoted identifiers in schema in SimpleJdbcInsert
...
This commit introduces additional tests for "quoted identifier" support
in SimpleJdbcInsert when the schema itself is defined using quoted
identifiers -- for example, to use keywords as column names.
See gh-31208
2 years ago
Sam Brannen
71330ddb0f
Revise support for quoted identifiers in SimpleJdbcInsert
...
Closes gh-31208
2 years ago
Sam Brannen
a803206d5f
Polishing
2 years ago
Sam Brannen
2d792f000a
Polish "Apply SingleSpaceSeparator Checkstyle module"
...
See gh-31469
2 years ago
Johnny Lim
64e9fcad53
Apply SingleSpaceSeparator Checkstyle module
...
This commit also fixes its violations.
Closes gh-31469
2 years ago
Johnny Lim
919faa2ce2
Order modifiers to align with JLS
...
This commit also applies Checkstyle ModifierOrder to enforce it.
See gh-31368
2 years ago
Juergen Hoeller
c0d98fcc7a
Consistent Object result declarations for ResultQuerySpec
...
Closes gh-31403
2 years ago
Juergen Hoeller
8b5d993e61
Throw IllegalArgumentException for null SQL String
...
Closes gh-31391
2 years ago
Stéphane Nicoll
61f27dafee
Polish "Use schema-based config in sql-error-codes.xml"
...
See gh-31354
2 years ago