From a3ac069b755e78edc74596e7cfeb1377ed5df382 Mon Sep 17 00:00:00 2001 From: jingtian Date: Mon, 16 Oct 2023 11:59:24 +0800 Subject: [PATCH] fix user without show view permission cannot get view info --- .../schema/mysql/MySQLNoGreaterThan5740SchemaAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/db-browser/src/main/java/com/oceanbase/tools/dbbrowser/schema/mysql/MySQLNoGreaterThan5740SchemaAccessor.java b/libs/db-browser/src/main/java/com/oceanbase/tools/dbbrowser/schema/mysql/MySQLNoGreaterThan5740SchemaAccessor.java index 1c6e623469..b76e00dc29 100644 --- a/libs/db-browser/src/main/java/com/oceanbase/tools/dbbrowser/schema/mysql/MySQLNoGreaterThan5740SchemaAccessor.java +++ b/libs/db-browser/src/main/java/com/oceanbase/tools/dbbrowser/schema/mysql/MySQLNoGreaterThan5740SchemaAccessor.java @@ -1033,7 +1033,7 @@ public DBView getView(String schemaName, String viewName) { view.setDefiner(rs.getString(7)); }); MySQLSqlBuilder getDDL = new MySQLSqlBuilder(); - getDDL.append("show create view "); + getDDL.append("show create table "); getDDL.identifier(schemaName); getDDL.append("."); getDDL.identifier(viewName);