Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:修复Oracle输出SQL时游标参数缺失的BUG #6016

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ladlee666
Copy link

当我通过SQLUtils解析下面这条sql的时候,最后返回的sql丢掉了游标参数(name_str VARCHAR2)
DECLARE
CURSOR cur_param(name_str VARCHAR2) IS SELECT u.USERNAME, u.PASSWORD FROM MG_USER u WHERE ID = 1;
op_name VARCHAR2(100);
BEGIN
SELECT NVL(EMP_NAME, USERNAME) INTO op_name FROM MG_USER WHERE ID = '';
END;

@CLAassistant
Copy link

CLAassistant commented Jul 5, 2024

CLA assistant check
All committers have signed the CLA.

@wenshao
Copy link
Member

wenshao commented Jul 16, 2024

  1. 修复下代码冲突
  2. 补充下testcase

# Conflicts:
#	core/src/main/java/com/alibaba/druid/sql/dialect/oracle/visitor/OracleOutputVisitor.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants