Juergen Hoeller
965f3c6434
Polishing
2018-06-11 17:00:51 +02:00
Juergen Hoeller
c99a104919
Polishing
2018-05-05 16:36:52 +02:00
Juergen Hoeller
1ca06537c1
Polishing
2018-04-03 13:20:09 +02:00
Juergen Hoeller
5629fa2c9f
Pass type name into PreparedStatement.setNull in case of Types.OTHER
...
Issue: SPR-16669
(cherry picked from commit 9a722b4 )
2018-03-31 17:01:47 +02:00
nkjackzhang
f3dd22da5b
NamedParameterUtils.parseSqlStatement should parse :{x} style parameter correctly
...
In my opinion, we should parse ":{x}" style parameter as "x" is parameter using "NamedParameterUtils.parseSqlStatement",
so the condition "j - i > 2" is the correct condition, not "j - i > 3", because if "i" is the index of
":" in ":{x}", and "j" is the index of "}" in ":{x}", "j - i == 3" is true.
Also add a test case for SPR-16663.
(cherry picked from commit 82cb5db )
2018-03-29 17:21:00 +02:00
Juergen Hoeller
9cc03fa8b0
Polishing
2018-03-28 02:03:31 +02:00
Juergen Hoeller
0e7e49bab0
Deprecate TableMetaDataContext.getSimulationQueryForGetGeneratedKey
...
(cherry picked from commit 2c7efbb )
2018-03-28 01:18:28 +02:00
Juergen Hoeller
301ba01427
CallMetaDataContext handles 'procedureColumnResult' as return parameter
...
Issue: SPR-16611
(cherry picked from commit b7c4238 )
2018-03-28 01:18:20 +02:00
Juergen Hoeller
1bde920cce
Quick access to volatile field (full synchronization only for lazy init)
...
Issue: SPR-16570
(cherry picked from commit 50253f6 )
2018-03-28 01:16:06 +02:00
Juergen Hoeller
0962c66592
Consistent incrementer arrangement for PostgreSQL, DB2 and SAP HANA
...
Includes related polishing in core.metadata and datasource.embedded and a revision of the corresponding database definitions in sql-error-codes.
Issue: SPR-16558
(cherry picked from commit 82515a3 )
2018-03-07 16:22:52 +01:00
Juergen Hoeller
b643f7836c
Drop version check in isGetGeneratedKeysSimulated (for PostgreSQL 10)
...
Issue: SPR-16556
(cherry picked from commit 4a4f2c2 )
2018-03-07 16:22:39 +01:00
Juergen Hoeller
d4af8c86b2
Polishing
2018-02-25 21:44:34 +01:00
igor-suhorukov
39ddd0f349
Polish: String function use should be optimized for single characters
...
(cherry picked from commit 49fd724 )
2018-02-25 21:44:00 +01:00
igor-suhorukov
d5f358c33c
Polish: Array designators "[]" should be on the type, not the variable
...
(cherry picked from commit c782075 )
2018-02-25 15:03:54 +01:00
Juergen Hoeller
8b071633d3
Consistent use of ClassUtils.toClassArray (and related polishing)
2018-02-22 14:27:57 +01:00
Juergen Hoeller
6d11b40353
Consistent use of StringUtils.toStringArray
2018-02-16 19:48:43 +01:00
Juergen Hoeller
722cb36e01
Consistent Class array vs vararg declarations (and related polishing)
...
(cherry picked from commit 3b810f3 )
2018-02-14 16:38:28 +01:00
Juergen Hoeller
f2dc075335
Defensively handle DatabaseMetaData.getConnection() returning null
...
Issue: SPR-16495
(cherry picked from commit 766e602 )
2018-02-14 16:37:55 +01:00
Juergen Hoeller
afe461609c
Polishing (selective backports from master)
2018-02-12 13:45:53 +01:00
Juergen Hoeller
2654dbfcf1
Relaxed procedure existence check on Oracle (for non-exposed synonyms)
...
Issue: SPR-16478
(cherry picked from commit fc93f99 )
2018-02-12 13:44:45 +01:00
Juergen Hoeller
4ccf33e36b
Javadoc format and related polishing
...
(cherry picked from commit 9d0e62e )
2018-01-22 13:08:03 +01:00
Juergen Hoeller
8b5a013423
Polishing
2018-01-19 19:35:02 +01:00
Juergen Hoeller
64af3a0f64
Use ArrayList instead of LinkedList for known size
...
Issue: SPR-16378
2018-01-19 19:07:10 +01:00
Juergen Hoeller
d7959edb3e
Improve performance of some string operations
...
Issue: SPR-16293
2018-01-19 19:05:07 +01:00
Juergen Hoeller
723b2b19a6
Consistent checks in DataAccessUtils (plus nullability hints in javadoc)
...
Issue: SPR-16225
2017-11-26 17:55:03 +01:00
Juergen Hoeller
a58ef88f1d
SqlParameterSourceUtils.createBatch polishing (partial backport)
...
Issue: SPR-16215
2017-11-20 13:33:50 +01:00
Juergen Hoeller
640c8ff693
Polishing
2017-11-14 12:31:01 +01:00
Juergen Hoeller
d5f34ed641
Correctly handle NVARCHAR, LONGNVARCHAR and NCLOBs
...
Issue: SPR-16154
2017-11-14 12:30:13 +01:00
Juergen Hoeller
cc70fdcbeb
Backport further refinements from the nullability efforts
...
Issue: SPR-15656
2017-09-27 15:20:17 +02:00
Juergen Hoeller
9fdc4404a5
Backport selected refinements from the nullability efforts
...
Issue: SPR-15656
2017-09-27 00:10:04 +02:00
Juergen Hoeller
c752ba5b38
Polishing
2017-07-19 23:55:47 +02:00
Juergen Hoeller
a9a1f783c5
Polishing
2017-04-13 15:59:15 +02:00
Juergen Hoeller
65d52a4b97
Correctly process Postgresql ?| and ?& operator
...
Issue: SPR-15382
2017-04-13 15:59:07 +02:00
Juergen Hoeller
7f3d0b3e6e
Test for BeanPropertySqlParameterSource with collection
...
Issue: SPR-15390
(cherry picked from commit af6f688 )
2017-04-13 15:53:39 +02:00
Juergen Hoeller
21ac764e5c
Polishing
2017-03-24 13:41:34 +01:00
Juergen Hoeller
cfd9b3461f
Process NULLABLE column as integer instead of boolean
...
Issue: SPR-15333
(cherry picked from commit 79ea779 )
2017-03-24 13:39:10 +01:00
Juergen Hoeller
b945e0f202
Polishing
...
(cherry picked from commit 6d6cf01 )
2017-02-28 14:00:59 +01:00
Juergen Hoeller
0f71f58616
Polishing
2017-02-18 00:52:12 +01:00
Juergen Hoeller
dfa8a7c358
Polishing
2017-02-16 15:57:52 +01:00
Juergen Hoeller
427fd9b19a
OracleTableMetaDataProvider tries Connection.unwrap as well
...
Issue: SPR-14670
2017-02-16 15:57:39 +01:00
Juergen Hoeller
b0ef80c3ff
Polishing
2017-02-16 14:20:40 +01:00
Juergen Hoeller
5017c05c23
Polishing
...
(cherry picked from commit e9019cd )
2017-02-10 11:47:28 +01:00
Juergen Hoeller
941f3e7166
Clear synchronization before triggering afterCompletion callbacks
...
Issue: SPR-15194
Issue: SPR-11590
(cherry picked from commit b630c9b )
2017-02-10 11:46:13 +01:00
Juergen Hoeller
e038631a6d
Support for read-only transactions through explicit SET TRANSACTION statement
...
Issue: SPR-15210
(cherry picked from commit 02195f5 )
2017-02-02 21:20:17 +01:00
Juergen Hoeller
28849e0987
Revisit Assert to avoid single-arg assert methods (with refined messages)
...
Issue: SPR-15196
(cherry picked from commit 1b2dc36 )
2017-01-31 10:28:46 +01:00
Juergen Hoeller
cc53d597c0
MySQLMaxValueIncrementer supports "useNewConnection" mode for INNODB tables
...
Issue: SPR-15107
2017-01-12 22:53:10 +01:00
Juergen Hoeller
de7eea4498
GenericTableMetaDataProvider falls back to single schema as default
...
Issue: SPR-15090
(cherry picked from commit de43497 )
2017-01-12 22:49:32 +01:00
Philippe Marschall
55b44b4f86
Avoid use of double constructor of BigDecimal
...
Codacy warns about an Error Prone [1] use of the double constructor of
BigDecimal in tests. The reason given is that it is a source of
precision loss if the number does not have an exact double
representation. The recommendation is to use the String constructor of
BigDecimal instead as it does not require using a lossy argument.
This commit contains the following changes:
- replace usage of the double constructor of BigDecimal with the
String constructor of BigDecimal in JdbcTemplateQueryTests
- update the copyright year
[1] http://errorprone.info/bugpattern/BigDecimalLiteralDouble
Issue: SPR-15077
2017-01-04 09:32:23 +01:00
Philippe Marschall
131d2c2051
Remove String#toCharArray from ScriptUtils
...
ScriptUtils contains two calls to String#toCharArray for the sole
purpose to iterating over all chars in a String. Not only is this
unnecessary and can be replaced with String#charAt it also causes
additional allocator and heap pressure because String#toCharArray
rather than returning the backing array (which is gone in Java 9)
creates a copy.
This commit contains the following changes:
- remove String#toCharArray from ScriptUtils and replace with
String#charAt
Issue: SPR-15075
2017-01-03 18:02:45 +01:00
Juergen Hoeller
9cb4de8b5e
Polishing
2016-12-20 21:11:07 +01:00