Skip to content

Commit be16932

Browse files
author
daobing zhu
committed
fix: update error parameter from 3 to 2 in tableNameCollector in case of
ref: Qihoo360#280
1 parent 99b77fb commit be16932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private void visitBasicCall(SqlBasicCall sqlCall) {
190190

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

0 commit comments

Comments
 (0)