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

IvorySQL PL/SQL 创建函数/存储过程存在问题 #477

Closed
Leo-XM-Zeng opened this issue Aug 30, 2023 · 4 comments
Closed

IvorySQL PL/SQL 创建函数/存储过程存在问题 #477

Leo-XM-Zeng opened this issue Aug 30, 2023 · 4 comments
Assignees
Labels
3.0 bug Something isn't working Community Community Supported Feature

Comments

@Leo-XM-Zeng
Copy link
Contributor

Bug Report

plisql 创建函数/存储过程存在问题

IvorySQL Version

IvorySQL master

OS Version (uname -a)

CentOS -8

Configuration options ( config.status --config )

set ivorysql.compatible_mode = oracle;

Current Behavior

1、感觉词法处理不到位 不能消化/ 后续变成- 不能结束的状态

create or replace function ftest return int as  
begin
return 25;
end;
/

结果如图:
3853244cd0faea4bca36bf4c3f32638

2、 在原先的基础上 声明了一个变量 va ,可能需要检查语法文件和词法文件

create or replace function ftest return int 
as
va int;  
begin
return 25;
end;
/

结果如图:
1fed2eeabafc6dd360ba11816e49cf1

3、触发了一次 后续没有再碰到 这个就更有意思了 复制粘贴正常运行 能消耗'/ '并且创建成功,但是按上建 or replace会陷入不能结束的状态
6e366b535df8a6d02afd4ead69ac67e

Expected behavior/code

正常创建

Step to reproduce

如上所示

Additional context that can be helpful for identifying the problem

@Leo-XM-Zeng Leo-XM-Zeng added the bug Something isn't working label Aug 30, 2023
@Leo-XM-Zeng
Copy link
Contributor Author

Leo-XM-Zeng commented Aug 30, 2023

第一种情况 其实不改也没啥事 就和EDB一样

@wangjie-star
Copy link
Collaborator

感谢您提的问题,针对第一个问题,我们是已经解决了的,具体用法如下:
1693449009603

@Leo-XM-Zeng
Copy link
Contributor Author

感谢您提的问题,针对第一个问题,我们是已经解决了的,具体用法如下: 1693449009603

盲猜一嘴 这也许是在psql层面配合语法文件实现的隐含参数 。 想请问关于ivorysql内置的隐含参数 由具体文档链接提供吗 没这些东西的话 比如说此处的**\parser** 对于初来乍到的开发人员来说属实有些痛苦

@wangjie-star
Copy link
Collaborator

目前暂时没有相关文档,后续会补充相关文档到IvorySQL官网

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 bug Something isn't working Community Community Supported Feature
Projects
None yet
Development

No branches or pull requests

3 participants