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

问题描述

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

  1. {呼叫XXX}-使用jconn4-26502.jar在Mule 4.2.2 Studio中不起作用,并且出现错误

  2. exec XXX-它正在使用SQL开发人员工具。

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

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

    errorType = DB:QUERY_EXECUTION cause = org.mule.extension.db.api.exception.connection.QueryExecutionException

Sybase Stored procedure issue in Mule 4.2.2

解决方法

通过使用CallableStatement编写Java代码来解决问题

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...