You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/30 07:43:51 UTC

[GitHub] [shardingsphere] tuichenchuxin opened a new issue #12849: sql-parser-test unsupported sql test should include SqlVistor method

tuichenchuxin opened a new issue #12849:
URL: https://github.com/apache/shardingsphere/issues/12849


   I want to record some sql that sql parse engine is not supported. But in UnsupportedSQLParserParameterizedTest just include parse method. I think include visit and covert to sql statement can be better.
   ```
       @Test(expected = SQLParsingException.class)
       public final void assertUnsupportedSQL() {
           String sql = SQL_CASES_LOADER.getCaseValue(sqlCaseId, sqlCaseType, Collections.emptyList());
           String databaseType = "H2".equals(this.databaseType) ? "MySQL" : this.databaseType;
           new SQLParserEngine(databaseType, true).parse(sql, false);
       }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] tuichenchuxin closed issue #12849: sql-parser-test unsupported sql test should include SqlVistor method

Posted by GitBox <gi...@apache.org>.
tuichenchuxin closed issue #12849:
URL: https://github.com/apache/shardingsphere/issues/12849


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org