Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Web Development
>
Web Framework
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
9.9K
Star
14.5K
Fork
4.2K
GVP
dotNET China
/
Furion
Code
Issues
0
Pull Requests
0
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
Oracle 调用存储过程返回结果集,有游标参数时,存储过程调用不成功
Done
#I3ZBYE
哄哄
Opened this issue
2021-07-06 15:23
> 特别说明:如果 Issue 报告为问题且开发成员回复确认问题之后但**三天内**都不能得到反馈,则视为无效Issue。 ### Furion 版本号 2.11.4 ----------- ### Web 项目类型 - [x] WebApi - [ ] Mvc - [ ] Razor Pages - [ ] Blazor Server - [ ] MinApp ----------- ### 描述你的问题 发生了什么? Oracle 调用存储过程返回结果集时,若参数只有input参数,output参数时调用OK 但当我加入游标参数时,存储过程调用不成功 ----------- ### 异常堆栈信息  ### 代码或代码仓库 存储过程: ``` create or replace PACKAGE TEST IS TYPE c_rets IS REF CURSOR; PROCEDURE GET_INFO(P_FAMILY IN VARCHAR2, P_MSG OUT VARCHAR2, P_RET OUT VARCHAR2, P_RETS OUT c_rets); END TEST; create or replace PACKAGE BODY TEST IS PROCEDURE GET_INFO(P_FAMILY IN VARCHAR2, P_MSG OUT VARCHAR2, P_RET OUT VARCHAR2, P_RETS OUT c_rets) IS L_STR VARCHAR2(3200); BEGIN P_MSG:='OK'; P_RET:='OK'; L_STR:=' SELECT ''TEST'' AS TEST FROM DUAL'; DBMS_OUTPUT.PUT_LINE(L_STR); OPEN P_RETS FOR L_STR; END GET_INFO; END TEST; ``` ``` public class ProcOutputModel { [DbParameter(Direction = ParameterDirection.Input)] public string P_FAMILY { get; set; } //输入参数 [DbParameter(Direction = ParameterDirection.Output, Size =100)] public string P_MSG { get; set; } [DbParameter(Direction = ParameterDirection.Output, Size = 100)] public string P_RET { get; set; } [DbParameter(Direction = ParameterDirection.Output,DbType =DbType.Object)] public object P_RETS { get; set; } } public interface ISqlProxy : ISqlDispatchProxy { [SqlProcedure("FQC.TEST.GET_INFO")] ProcedureOutputResult GetInfo(ProcOutputModel proc); } ``` 当我把 DbType =DbType.Object 修改为 OracleDbType.RefCursor时 出现报错信息:  ----------- ### 数据库信息 - [] Sqlite - [x] SqlServer - [x] Mysql - [x] Oracle - [x] PGSql - [x] Firebird - [x] Cosmos ----------- ### 期待结果 期待的结果是? 希望可以支持 oracle 游标参数 -----------
> 特别说明:如果 Issue 报告为问题且开发成员回复确认问题之后但**三天内**都不能得到反馈,则视为无效Issue。 ### Furion 版本号 2.11.4 ----------- ### Web 项目类型 - [x] WebApi - [ ] Mvc - [ ] Razor Pages - [ ] Blazor Server - [ ] MinApp ----------- ### 描述你的问题 发生了什么? Oracle 调用存储过程返回结果集时,若参数只有input参数,output参数时调用OK 但当我加入游标参数时,存储过程调用不成功 ----------- ### 异常堆栈信息  ### 代码或代码仓库 存储过程: ``` create or replace PACKAGE TEST IS TYPE c_rets IS REF CURSOR; PROCEDURE GET_INFO(P_FAMILY IN VARCHAR2, P_MSG OUT VARCHAR2, P_RET OUT VARCHAR2, P_RETS OUT c_rets); END TEST; create or replace PACKAGE BODY TEST IS PROCEDURE GET_INFO(P_FAMILY IN VARCHAR2, P_MSG OUT VARCHAR2, P_RET OUT VARCHAR2, P_RETS OUT c_rets) IS L_STR VARCHAR2(3200); BEGIN P_MSG:='OK'; P_RET:='OK'; L_STR:=' SELECT ''TEST'' AS TEST FROM DUAL'; DBMS_OUTPUT.PUT_LINE(L_STR); OPEN P_RETS FOR L_STR; END GET_INFO; END TEST; ``` ``` public class ProcOutputModel { [DbParameter(Direction = ParameterDirection.Input)] public string P_FAMILY { get; set; } //输入参数 [DbParameter(Direction = ParameterDirection.Output, Size =100)] public string P_MSG { get; set; } [DbParameter(Direction = ParameterDirection.Output, Size = 100)] public string P_RET { get; set; } [DbParameter(Direction = ParameterDirection.Output,DbType =DbType.Object)] public object P_RETS { get; set; } } public interface ISqlProxy : ISqlDispatchProxy { [SqlProcedure("FQC.TEST.GET_INFO")] ProcedureOutputResult GetInfo(ProcOutputModel proc); } ``` 当我把 DbType =DbType.Object 修改为 OracleDbType.RefCursor时 出现报错信息:  ----------- ### 数据库信息 - [] Sqlite - [x] SqlServer - [x] Mysql - [x] Oracle - [x] PGSql - [x] Firebird - [x] Cosmos ----------- ### 期待结果 期待的结果是? 希望可以支持 oracle 游标参数 -----------
Comments (
13
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Closed
Assignees
Not set
百小僧
monksoul
Assignee
Collaborator
+Assign
+Mention
Labels
漏洞
Not set
Label settings
Milestones
Furion 2021
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(3)
C#
1
https://gitee.com/dotnetchina/Furion.git
git@gitee.com:dotnetchina/Furion.git
dotnetchina
Furion
Furion
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register