Skip to content

Commit

Permalink
[CBRD-25266] (bugfix) CSQL core dump when an undefined column name in…
Browse files Browse the repository at this point in the history
… a Static SQL Insert statement (#1987)

Refer to http://jira.cubrid.org/browse/CBRD-25266

CSQL core dump when an undefined column name in a Static SQL Insert statement
  • Loading branch information
kiho-um authored Dec 26, 2024
1 parent 864e748 commit f7665c1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
===================================================
0

===================================================
0

===================================================
Error:-1360
In line 3, column 1
Stored procedure compile error: Semantic: before ' values(1, 2)'
Class of [dba.ttt] does not have attribute j. insert into [dba.ttt] (i, ?:0 ) values (1, 2)

===================================================
0

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--+ server-message on
-- Verified for CBRD-25266
-- The column name undefined use in a Static SQL Insert statement.
-- error code :
-- [err] Stored procedure compile error: does not have attribute j

drop table if exists ttt;

create table ttt (i int);
create or replace procedure poo as
begin
insert into ttt(i, j) values(1, 2);
end;

drop table ttt;

--+ server-message off

0 comments on commit f7665c1

Please sign in to comment.