From be169326632acb6b04cb8715536c0291b014e6d8 Mon Sep 17 00:00:00 2001 From: daobing zhu Date: Mon, 11 Jul 2022 10:26:31 +0800 Subject: [PATCH] fix: update error parameter from 3 to 2 in tableNameCollector in case of ref: #280 --- core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java b/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java index 21985321..d8451fa4 100644 --- a/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java +++ b/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java @@ -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); }