File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments