在具有多个 SQL 语句的过程中声明了执行游标 'jconnect_implicit_1'

Execute cursor 'jconnect_implicit_1' is declared on a procedure which has more than one SQL statement

在 Mule 4.2.2 中为 Sybase 数据库使用“数据库存储过程”连接器。

  1. { call XXX } - 它在 Mule 4.2.2 studio 中无法使用 jconn4-26502.jar 并低于错误

  2. exec XXX - 它正在 SQL 开发者工具中工作。

    description=Execute cursor 'jconnect_implicit_1' 是在一个包含多个 SQL 语句的过程中声明的。为了使此游标声明合法,该过程应具有单个 SELECT 语句子句。

    detailedDescription=Execute cursor 'jconnect_implicit_1' 是在一个包含多个 SQL 语句的过程中声明的。为了使此游标声明合法,该过程应具有单个 SELECT 语句子句。

    错误类型 = DB:QUERY_EXECUTION 原因=org.mule.extension.db.api.exception.connection.QueryExecutionException

Sybase Stored procedure issue in Mule 4.2.2

问题已通过使用 CallableStatement

编写 java 代码解决