From 957bbab0e068a4cbe2707d85db08302ba1684a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=AE=B6=E7=91=9E?= Date: Sun, 28 Apr 2024 18:07:24 +0800 Subject: [PATCH] fixed #5866 DDL SQL syntax error. --- core/src/main/java/com/alibaba/druid/util/OracleUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/alibaba/druid/util/OracleUtils.java b/core/src/main/java/com/alibaba/druid/util/OracleUtils.java index d263143159..8a5acacae5 100644 --- a/core/src/main/java/com/alibaba/druid/util/OracleUtils.java +++ b/core/src/main/java/com/alibaba/druid/util/OracleUtils.java @@ -261,7 +261,7 @@ public static List getTableDDL(Connection conn, List tables) thr sql.append("select DBMS_METADATA.GET_DDL('TABLE', TABLE_NAME) FROM user_tables"); if (tables.size() > 0) { - sql.append("IN ("); + sql.append(" WHERE TABLE_NAME IN ("); for (int i = 0; i < tables.size(); ++i) { if (i != 0) { sql.append(", ?");