mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support cobar hints
This commit is contained in:
@@ -102,6 +102,7 @@ public class MySqlMockExecuteHandlerImpl implements MockExecuteHandler {
|
||||
return rs;
|
||||
}
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
public ResultSet executeQueryFromDual(MockStatement statement, SQLSelectQueryBlock query) throws SQLException {
|
||||
MockResultSet rs = new MockResultSet(statement);
|
||||
MockResultSetMetaData metaData = rs.getMockMetaData();
|
||||
|
||||
@@ -215,6 +215,11 @@ public class SQLStatementParser extends SQLParser {
|
||||
if (parseStatementListDialect(statementList)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.HINT) {
|
||||
lexer.nextToken();
|
||||
continue;
|
||||
}
|
||||
|
||||
throw new ParserException("TODO " + lexer.token() + " " + lexer.stringVal());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user