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 b56565d commit 3b74289Copy full SHA for 3b74289
src/test/java/net/sf/jsqlparser/expression/FunctionTest.java
@@ -108,4 +108,15 @@ void testSimpleFunctionIssue2059() throws JSQLParserException {
108
void testListAggOnOverflow(String sqlStr) throws Exception {
109
TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
110
}
111
+
112
+ @ParameterizedTest
113
+ @ValueSource(strings = {
114
+ "select RTRIM('string')",
115
+ "select LTRIM('string')",
116
+ "select RTRIM(field) from dual",
117
+ "select LTRIM(field) from dual"
118
+ })
119
+ void testTrimFunctions(String sqlStr) throws JSQLParserException {
120
+ TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
121
+ }
122
0 commit comments