Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
simplify low_priority
  • Loading branch information
OlivierCavadenti committed Nov 1, 2021
commit defd9675331bf92cd36c53295bb88f3885606347
16 changes: 5 additions & 11 deletions src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -1131,11 +1131,8 @@ Update Update( List<WithItem> with ):
}
{
<K_UPDATE> { update.setOracleHint(getOracleHint()); }
[(tk = <K_LOW_PRIORITY>)
{if (tk!=null)
modifierPriority = UpdateModifierPriority.LOW_PRIORITY;
}]
[<K_IGNORE>{ modifierIgnore = true; }]
[<K_LOW_PRIORITY> { modifierPriority = UpdateModifierPriority.LOW_PRIORITY; }]
[<K_IGNORE> { modifierIgnore = true; }]
table=TableWithAlias() startJoins=JoinsList()
<K_SET>
(
Expand Down Expand Up @@ -1497,12 +1494,9 @@ Delete Delete( List<WithItem> with ):
}
{
<K_DELETE> { delete.setOracleHint(getOracleHint()); }
[(tk = <K_LOW_PRIORITY>)
{if (tk!=null)
modifierPriority = DeleteModifierPriority.LOW_PRIORITY;
}]
[<K_QUICK>{ modifierQuick = true; }]
[<K_IGNORE>{ modifierIgnore = true; }]
[<K_LOW_PRIORITY> { modifierPriority = DeleteModifierPriority.LOW_PRIORITY; }]
[<K_QUICK> { modifierQuick = true; }]
[<K_IGNORE> { modifierIgnore = true; }]
[LOOKAHEAD(4) (table=TableWithAlias() { tables.add(table); }
("," table=TableWithAlias() { tables.add(table); } )*
<K_FROM> | <K_FROM>) { hasFrom = true; }]
Expand Down