Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7357bead
Commit
7357bead
authored
Jan 14, 2004
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge lgrimmer@build.mysql.com:/home/bk/mysql-5.0
into mysql.com:/space/my/mysql-5.0
parents
ce56ffb3
370a43a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
3 deletions
+74
-3
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+16
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+14
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+24
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+17
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+3
-3
No files found.
mysql-test/r/sp-error.result
View file @
7357bead
...
...
@@ -302,4 +302,20 @@ call bug2272()|
ERROR 42S22: Unknown column 'v' in 'field list'
delete from t1|
drop procedure bug2272|
create procedure bug2329_1()
begin
declare v int;
insert into t1 (v) values (5);
end|
create procedure bug2329_2()
begin
declare v int;
replace t1 set v = 5;
end|
call bug2329_1()|
ERROR 42S22: Unknown column 'v' in 'field list'
call bug2329_2()|
ERROR 42S22: Unknown column 'v' in 'field list'
drop procedure bug2329_1|
drop procedure bug2329_2|
drop table t1|
mysql-test/r/sp.result
View file @
7357bead
...
...
@@ -75,6 +75,20 @@ id data
locset 21
delete from t1|
drop procedure locset|
create procedure setcontext()
begin
declare data int default 2;
insert into t1 (id, data) values ("foo", 1);
replace t1 set data = data, id = "bar";
update t1 set id = "kaka", data = 3 where t1.data = data;
end|
call setcontext()|
select * from t1|
id data
foo 1
kaka 3
delete from t1|
drop procedure setcontext|
drop table if exists t3|
create table t3 ( d date, i int, f double, s varchar(32) )|
create procedure nullset()
...
...
mysql-test/t/sp-error.test
View file @
7357bead
...
...
@@ -421,6 +421,30 @@ call bug2272()|
delete
from
t1
|
drop
procedure
bug2272
|
#
# BUG#2329
#
create
procedure
bug2329_1
()
begin
declare
v
int
;
insert
into
t1
(
v
)
values
(
5
);
end
|
create
procedure
bug2329_2
()
begin
declare
v
int
;
replace
t1
set
v
=
5
;
end
|
--
error
1054
call
bug2329_1
()
|
--
error
1054
call
bug2329_2
()
|
drop
procedure
bug2329_1
|
drop
procedure
bug2329_2
|
drop
table
t1
|
delimiter
;
|
mysql-test/t/sp.test
View file @
7357bead
...
...
@@ -109,6 +109,23 @@ delete from t1|
drop
procedure
locset
|
# In some contexts local variables are not recognized
# (and in some, you have to qualify the identifier).
create
procedure
setcontext
()
begin
declare
data
int
default
2
;
insert
into
t1
(
id
,
data
)
values
(
"foo"
,
1
);
replace
t1
set
data
=
data
,
id
=
"bar"
;
update
t1
set
id
=
"kaka"
,
data
=
3
where
t1
.
data
=
data
;
end
|
call
setcontext
()
|
select
*
from
t1
|
delete
from
t1
|
drop
procedure
setcontext
|
# Set things to null
--
disable_warnings
drop
table
if
exists
t3
|
...
...
sql/sql_yacc.yy
View file @
7357bead
...
...
@@ -4903,7 +4903,7 @@ ident_eq_list:
ident_eq_value;
ident_eq_value:
simple_ident equal expr_or_default
simple_ident
_nospvar
equal expr_or_default
{
LEX *lex=Lex;
if (lex->field_list.push_back($1) ||
...
...
@@ -4990,7 +4990,7 @@ update:
;
update_list:
update_list ',' simple_ident equal expr_or_default
update_list ',' simple_ident
_nospvar
equal expr_or_default
{
if (add_item_to_list(YYTHD, $3) || add_value_to_list(YYTHD, $5))
YYABORT;
...
...
@@ -5629,7 +5629,7 @@ NUM_literal:
**********************************************************************/
insert_ident:
simple_ident
{ $$=$1; }
simple_ident
_nospvar
{ $$=$1; }
| table_wild { $$=$1; };
table_wild:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment