From ad3927354bc9be7d12b37f3824fd09cf5d615a23 Mon Sep 17 00:00:00 2001 From: HenryYee Date: Tue, 23 Aug 2022 21:28:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=90=AB=E6=9C=89=E4=B8=AD=E6=A8=AA=E7=BA=BF?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=A4=B1=E8=B4=A5=202.=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81=E6=B2=A1=E6=9C=89=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E8=AF=B4=E6=98=8E=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handler/personal/impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler/personal/impl.go b/src/handler/personal/impl.go index b47d626a..afadc922 100644 --- a/src/handler/personal/impl.go +++ b/src/handler/personal/impl.go @@ -79,7 +79,7 @@ func (m *MultiSQLRunner) Run(db *sqlx.DB, schema string) (*Query, error) { if db == nil { return nil, errors.New("数据库连接失败!") } - db.Exec(fmt.Sprintf("use %s", schema)) + db.Exec(fmt.Sprintf("use `%s`", schema)) rows, err := db.Queryx(m.SQL) if err != nil {