Skip to content

Commit 7205906

Browse files
committed
checked #266
1 parent 76ed995 commit 7205906

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,4 +2754,9 @@ public void testIssue582NumericConstants() throws JSQLParserException {
27542754
public void testIssue583CharacterLiteralAsAlias() throws JSQLParserException {
27552755
assertSqlCanBeParsedAndDeparsed("SELECT CASE WHEN T.ISC = 1 THEN T.EXTDESC WHEN T.b = 2 THEN '2' ELSE T.C END AS 'Test' FROM T");
27562756
}
2757+
2758+
public void testIssue266KeywordTop() throws JSQLParserException {
2759+
assertSqlCanBeParsedAndDeparsed("SELECT @top");
2760+
assertSqlCanBeParsedAndDeparsed("SELECT @TOP");
2761+
}
27572762
}

0 commit comments

Comments
 (0)