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

Fixed unexpected error print by insert execute #3215

Open
wants to merge 1 commit into
base: BABEL_5_X_DEV
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions test/JDBC/expected/BABEL-INSERT-EXECUTE.out
Original file line number Diff line number Diff line change
Expand Up @@ -781,3 +781,20 @@ drop type user_defined_sch.test_tbl_type
go
drop schema user_defined_sch
go

-- BABEL-5306
create table t_5306 (id int)
GO

create proc p_5306 (@output INT OUTPUT) as SET @output = 1;
GO

DECLARE @i int
insert into t_5306 exec p_5306 @output = @i
GO

drop table t_5306
GO

drop procedure p_5306
GO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we also include the nested test case mentioned in the JIRA, Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sure

19 changes: 18 additions & 1 deletion test/JDBC/input/BABEL-INSERT-EXECUTE.sql
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,21 @@ go
drop type user_defined_sch.test_tbl_type
go
drop schema user_defined_sch
go
go

-- BABEL-5306
create table t_5306 (id int)
GO

create proc p_5306 (@output INT OUTPUT) as SET @output = 1;
GO

DECLARE @i int
insert into t_5306 exec p_5306 @output = @i
GO

drop table t_5306
GO

drop procedure p_5306
GO
Loading