提交 d24ccb76 编写于 作者: S Serge Rider

#462 MySQL function body read fix


Former-commit-id: 2c9b42d6
上级 417707df
......@@ -120,7 +120,7 @@ public class MySQLProcedure extends AbstractProcedure<MySQLDataSource, MySQLCata
try (JDBCPreparedStatement dbStat = session.prepareStatement("SHOW CREATE " + getProcedureType().name() + " " + getFullQualifiedName())) {
try (JDBCResultSet dbResult = dbStat.executeQuery()) {
if (dbResult.next()) {
clientBody = JDBCUtils.safeGetString(dbResult, "Create Procedure");
clientBody = JDBCUtils.safeGetString(dbResult, (getProcedureType() == DBSProcedureType.PROCEDURE ? "Create Procedure" : "Create Function"));
} else {
clientBody = "";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册