File tree 1 file changed +9
-0
lines changed
backend/modules/src/main/java/org.jumpserver.chen.modules/oracle
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
package org .jumpserver .chen .modules .oracle ;
2
2
3
+ import com .alibaba .druid .DbType ;
4
+ import com .alibaba .druid .sql .SQLUtils ;
3
5
import org .jumpserver .chen .framework .datasource .ConnectionManager ;
4
6
import org .jumpserver .chen .framework .datasource .base .BaseSQLActuator ;
5
7
import org .jumpserver .chen .framework .datasource .sql .SQL ;
@@ -59,4 +61,11 @@ public SQLExecutePlan createPlan(SQL sql) throws SQLException {
59
61
this .beforeCreatePlan (sql );
60
62
return super .createPlan (sql );
61
63
}
64
+
65
+ @ Override
66
+ public List <String > parseSQL (SQL sql ) {
67
+ return SQLUtils .parseStatements (sql .getSql (), DbType .ali_oracle ).stream ()
68
+ .map (stmt -> SQLUtils .toSQLString (stmt , DbType .ali_oracle ))
69
+ .toList ();
70
+ }
62
71
}
You can’t perform that action at this time.
0 commit comments