Skip to content

Commit b3faf8e

Browse files
committed
fixes #341
1 parent 98ded4d commit b3faf8e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ String RelObjectName() :
761761
| tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>
762762
| tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES> | tk=<K_PERCENT> | tk=<K_PRIOR>
763763
| tk=<K_SEPARATOR> | tk=<K_NO> | tk=<K_ACTION> | tk=<K_CASCADE> | tk=<K_END>
764-
| tk=<K_TABLE> | tk=<K_DATETIMELITERAL>
764+
| tk=<K_TABLE> | tk=<K_DATETIMELITERAL> | tk=<K_COMMIT>
765765
)
766766

767767
{ return tk.image; }

src/test/java/net/sf/jsqlparser/test/select/SelectTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,4 +2273,8 @@ public void testProblemSqlIssue330_2() throws JSQLParserException {
22732273
// public void testKeywordOrderAsColumnnameIssue333() throws JSQLParserException {
22742274
// assertSqlCanBeParsedAndDeparsed("SELECT choice.response_choice_id AS uuid, choice.digit AS digit, choice.text_response AS textResponse, choice.voice_prompt AS voicePrompt, choice.action AS action, choice.contribution AS contribution, choice.order_num AS order, choice.description AS description, choice.is_join_conference AS joinConference, choice.voice_prompt_language_code AS voicePromptLanguageCode, choice.text_response_language_code AS textResponseLanguageCode, choice.description_language_code AS descriptionLanguageCode, choice.rec_phrase AS recordingPhrase FROM response_choices choice WHERE choice.presentation_id = ? ORDER BY choice.order_num", true);
22752275
// }
2276+
2277+
public void testProblemKeywordCommitIssue341() throws JSQLParserException {
2278+
assertSqlCanBeParsedAndDeparsed("SELECT id, commit FROM table1");
2279+
}
22762280
}

0 commit comments

Comments
 (0)