We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e96b10 commit d081405Copy full SHA for d081405
src/test/java/org/apache/ibatis/scripting/xmltags/OgnlCacheTest.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2009-2021 the original author or authors.
+ * Copyright 2009-2022 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.
@@ -50,4 +50,12 @@ class DataClass {
50
}
51
executor.shutdown();
52
53
+
54
+ @Test
55
+ void issue2609() throws Exception {
56
+ Map<String, Object> context = new HashMap<>();
57
+ context.put("d1", java.sql.Date.valueOf("2022-01-01"));
58
+ context.put("d2", java.sql.Date.valueOf("2022-01-02"));
59
+ assertEquals(-1, OgnlCache.getValue("d1.compareTo(d2)", context));
60
+ }
61
0 commit comments