[jOOQ/jOOQ#12852] Parser can't handle TRIM (FROM <value>) syntax
This commit is contained in:
parent
9f20a54274
commit
51be4f7b57
@ -10627,10 +10627,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
|
||||
boolean both = !leading && !trailing && (parseKeywordIf("BOTH") || parseKeywordIf("B"));
|
||||
|
||||
if (leading || trailing || both) {
|
||||
if (parseIf(',')) {
|
||||
position(p);
|
||||
}
|
||||
else if (parseIf(')')) {
|
||||
if (parseIf(',') || parseIf(')')) {
|
||||
position(p);
|
||||
}
|
||||
else if (parseKeywordIf("FROM")) {
|
||||
@ -10643,6 +10640,17 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
|
||||
}
|
||||
}
|
||||
|
||||
if (parseKeywordIf("FROM")) {
|
||||
if (parseIf(',') || parseIf(')')) {
|
||||
position(p);
|
||||
}
|
||||
else {
|
||||
Field<String> f = (Field) parseField();
|
||||
parse(')');
|
||||
return trim(f);
|
||||
}
|
||||
}
|
||||
|
||||
Field<String> f1 = (Field) parseField();
|
||||
|
||||
if (parseKeywordIf("FROM")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user