[mysql] Fix hangup bug in use query
@@ -106,7 +106,9 @@ impl<W: io::Write> MysqlShim<W> for Session {
fn on_init(&mut self, db: &str, writer: InitWriter<W>) -> FuseQueryResult<()> {
debug!("MySQL use db:{}", db);
match self.ctx.set_default_db(db.to_string()) {
- Ok(..) => {}
+ Ok(..) => {
+ writer.ok()?;
+ }
Err(e) => {
error!("{}", e);
writer.error(
