Skip to content

Commit cfa7e89

Browse files
committed
added a test
1 parent 53c90e9 commit cfa7e89

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3221,4 +3221,15 @@ public void testMultiPartNamesIssue163() throws JSQLParserException {
32213221
public void testMultiPartNamesIssue608() throws JSQLParserException {
32223222
assertSqlCanBeParsedAndDeparsed("SELECT @@session.tx_read_only");
32233223
}
3224+
3225+
// Teradata allows SEL to be used in place of SELECT
3226+
// Deparse to the non-contracted form
3227+
@Test
3228+
public void testSelContraction() throws JSQLParserException {
3229+
final String statementSrc = "SEL name, age FROM person";
3230+
final String statementTgt = "SELECT name, age FROM person";
3231+
Select select = (Select) parserManager.parse(new StringReader(statementSrc));
3232+
assertStatementCanBeDeparsedAs(select, statementTgt);
3233+
}
3234+
32243235
}

0 commit comments

Comments
 (0)