Skip to content

Commit 0d9c1e6

Browse files
foo
1 parent 16518ab commit 0d9c1e6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/JpqlComplianceTests.java

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,9 +23,13 @@
2323
import org.junit.jupiter.api.Test;
2424

2525
/**
26+
* Test to verify compliance of {@link JpqlParser} with standard SQL. Other than {@link JpqlSpecificationTests} tests in
27+
* this class check that the parser follows a lenient approach and does not error on well known concepts like numeric
28+
* suffix.
29+
*
2630
* @author Christoph Strobl
2731
*/
28-
public class JpqlComplianceTests {
32+
class JpqlComplianceTests {
2933

3034
private static String parseWithoutChanges(String query) {
3135

@@ -52,7 +56,7 @@ private String reduceWhitespace(String original) {
5256
.trim();
5357
}
5458

55-
@Test
59+
@Test // GH-3277
5660
void numericLiterals() {
5761

5862
assertQuery("SELECT e FROM Employee e WHERE e.id = 1234");

0 commit comments

Comments
 (0)