Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
修复没有use db的情况下show tables引起Lost connection to MySQL server during query的bug
  • Loading branch information
ZzzCrazyPig committed Oct 18, 2016
1 parent cacf0e7 commit 33b9af3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/mycat/server/response/ShowTables.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static void response(ServerConnection c,String stmt,int type) {
}
} else {
c.writeErrMessage(ErrorCode.ER_NO_DB_ERROR,"No database selected");
return;
}

//分库的schema,直接从SchemaConfig中获取所有表名
Expand Down

0 comments on commit 33b9af3

Please sign in to comment.