Skip to content

Commit

Permalink
fixed alibaba#5866 DDL SQL syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
FanJiaRui authored and lizongbo committed Apr 29, 2024
1 parent 18d6872 commit 957bbab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/com/alibaba/druid/util/OracleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public static List<String> getTableDDL(Connection conn, List<String> 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(", ?");
Expand Down

0 comments on commit 957bbab

Please sign in to comment.