Skip to content

Commit

Permalink
fix: update error parameter from 3 to 2 in tableNameCollector in case of
Browse files Browse the repository at this point in the history
  • Loading branch information
daobing zhu committed Jul 11, 2022
1 parent 99b77fb commit be16932
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private void visitBasicCall(SqlBasicCall sqlCall) {

private QueryTables validateTableName(QueryTables tableNames) {
for (String tableName : tableNames.tableNames) {
if (tableName.split("\\.", -1).length > 3) {
if (tableName.split("\\.", -1).length > 2) {
throw new ParseException("Qsql only support structure like dbName.tableName,"
+ " and there is a unsupported tableName here: " + tableName);
}
Expand Down

0 comments on commit be16932

Please sign in to comment.