Skip to content

Commit 615c79c

Browse files
committed
Polishing.
See spring-projects#1873 Original pull request spring-projects#1875
1 parent 1b9b9b2 commit 615c79c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcSqlServerDialectTest.java

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2024 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.springframework.data.jdbc.core.dialect;
217

318
import java.time.Instant;
@@ -14,8 +29,9 @@
1429
*/
1530
class JdbcSqlServerDialectTest {
1631

17-
@Test
32+
@Test // GH-1873
1833
void testCustomConversions() {
34+
1935
JdbcCustomConversions jdbcCustomConversions = new JdbcCustomConversions(
2036
(List<?>) JdbcSqlServerDialect.INSTANCE.getConverters());
2137

spring-data-relational/src/main/java/org/springframework/data/relational/core/dialect/SqlServerDialect.java

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public Position getClausePosition() {
8181

8282
@Override
8383
public String getLock(LockOptions lockOptions) {
84+
8485
return switch (lockOptions.getLockMode()) {
8586
case PESSIMISTIC_WRITE -> "WITH (UPDLOCK, ROWLOCK)";
8687
case PESSIMISTIC_READ -> "WITH (HOLDLOCK, ROWLOCK)";

0 commit comments

Comments
 (0)