Changeset 7473
- Timestamp:
- Apr 12, 2018, 9:48:27 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.12-stable/src/core/net/sf/basedb/core/hibernate/NativeQueryWrapper.java
r7465 r7473 522 522 with a shorter list, Hibernate will try to set the non-existing parameters 523 523 which causes an exception. See http://base.thep.lu.se/ticket/2110 524 UPDATE: We also need to check for copied parameter (name) in case the list 525 contained only a single element. See http://base.thep.lu.se/ticket/2113 524 526 */ 525 527 @SuppressWarnings({ "unchecked", "rawtypes" }) … … 540 542 { 541 543 String name = i.next().getName(); 542 if (name.startsWith(prefixOfParametersToRemove) )544 if (name.startsWith(prefixOfParametersToRemove) || name.equals(parameterName)) 543 545 { 544 546 i.remove();
Note: See TracChangeset
for help on using the changeset viewer.