-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CBRD-25266] (bugfix) CSQL core dump when an undefined column name in…
… 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
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
sql/_05_plcsql/_01_testspec/_05_bug_fix/answers/21_insert_column_name_undefined.answer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
17 changes: 17 additions & 0 deletions
17
sql/_05_plcsql/_01_testspec/_05_bug_fix/cases/21_insert_column_name_undefined.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |