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
dde88ea8
Commit
dde88ea8
authored
Nov 16, 2004
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A fix (bug #6449: DO server-crashing bug).
parent
5b905808
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
mysql-test/r/select.result
mysql-test/r/select.result
+4
-0
mysql-test/t/select.test
mysql-test/t/select.test
+9
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-4
No files found.
mysql-test/r/select.result
View file @
dde88ea8
...
@@ -2057,6 +2057,10 @@ t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
...
@@ -2057,6 +2057,10 @@ t2 1 fld3 1 fld3 A NULL NULL NULL BTREE
drop table t4, t3, t2, t1;
drop table t4, t3, t2, t1;
DO 1;
DO 1;
DO benchmark(100,1+1),1,1;
DO benchmark(100,1+1),1,1;
do default;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
do foobar;
ERROR 42S22: Unknown column 'foobar' in 'field list'
CREATE TABLE t1 (
CREATE TABLE t1 (
id mediumint(8) unsigned NOT NULL auto_increment,
id mediumint(8) unsigned NOT NULL auto_increment,
pseudo varchar(35) NOT NULL default '',
pseudo varchar(35) NOT NULL default '',
...
...
mysql-test/t/select.test
View file @
dde88ea8
...
@@ -1756,6 +1756,15 @@ drop table t4, t3, t2, t1;
...
@@ -1756,6 +1756,15 @@ drop table t4, t3, t2, t1;
DO
1
;
DO
1
;
DO
benchmark
(
100
,
1
+
1
),
1
,
1
;
DO
benchmark
(
100
,
1
+
1
),
1
,
1
;
#
# Bug #6449: do default;
#
--
error
1064
do
default
;
--
error
1054
do
foobar
;
#
#
# random in WHERE clause
# random in WHERE clause
#
#
...
...
sql/sql_yacc.yy
View file @
dde88ea8
...
@@ -3932,11 +3932,12 @@ do: DO_SYM
...
@@ -3932,11 +3932,12 @@ do: DO_SYM
{
{
LEX *lex=Lex;
LEX *lex=Lex;
lex->sql_command = SQLCOM_DO;
lex->sql_command = SQLCOM_DO;
if (!(lex->insert_list = new List_item))
mysql_init_select(lex);
YYABORT;
}
expr_list
{
Lex->insert_list= $3;
}
}
values
{}
;
;
/*
/*
...
...
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