mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -0,0 +1,26 @@
|
||||
package com.alibaba.druid.bvt.bug;
|
||||
|
||||
import com.alibaba.druid.sql.SQLUtils;
|
||||
import com.alibaba.druid.sql.parser.SQLParserUtils;
|
||||
import com.alibaba.druid.sql.parser.SQLStatementParser;
|
||||
import com.alibaba.druid.util.JdbcConstants;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* Created by wenshao on 03/02/2017.
|
||||
*/
|
||||
public class Issue1576 extends TestCase {
|
||||
private final String dbType = JdbcConstants.ORACLE;
|
||||
public void test_for_issue() throws Exception {
|
||||
String sql = "select * from t whe id = 1";
|
||||
SQLStatementParser parser = SQLParserUtils.createSQLStatementParser(sql, dbType);
|
||||
|
||||
Exception error = null;
|
||||
try {
|
||||
parser.parseStatement(true);
|
||||
} catch (Exception ex) {
|
||||
error = ex;
|
||||
}
|
||||
assertNotNull(error);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user