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
cfcc7e26
Commit
cfcc7e26
authored
Aug 31, 2010
by
Gleb Shchepa
Browse files
Options
Browse Files
Download
Plain Diff
automerge local --> 5.1-bugteam (bug 53034)
parents
ed8aa284
ccab4d87
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletion
+39
-1
mysql-test/r/delete.result
mysql-test/r/delete.result
+9
-0
mysql-test/t/delete.test
mysql-test/t/delete.test
+13
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+17
-1
No files found.
mysql-test/r/delete.result
View file @
cfcc7e26
...
@@ -358,4 +358,13 @@ INDEX(a), INDEX(b), INDEX(c));
...
@@ -358,4 +358,13 @@ INDEX(a), INDEX(b), INDEX(c));
INSERT INTO t1 VALUES (1,2,3), (4,5,6), (7,8,9);
INSERT INTO t1 VALUES (1,2,3), (4,5,6), (7,8,9);
DELETE FROM t1 WHERE a = 10 OR b = 20 ORDER BY c LIMIT 1;
DELETE FROM t1 WHERE a = 10 OR b = 20 ORDER BY c LIMIT 1;
DROP TABLE t1;
DROP TABLE t1;
#
# Bug #53034: Multiple-table DELETE statements not accepting
# "Access compatibility" syntax
#
CREATE TABLE t1 (id INT);
CREATE TABLE t2 LIKE t1;
CREATE TABLE t3 LIKE t1;
DELETE FROM t1.*, test.t2.*, a.* USING t1, t2, t3 AS a;
DROP TABLE t1, t2, t3;
End of 5.1 tests
End of 5.1 tests
mysql-test/t/delete.test
View file @
cfcc7e26
...
@@ -387,4 +387,17 @@ DELETE FROM t1 WHERE a = 10 OR b = 20 ORDER BY c LIMIT 1;
...
@@ -387,4 +387,17 @@ DELETE FROM t1 WHERE a = 10 OR b = 20 ORDER BY c LIMIT 1;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug #53034: Multiple-table DELETE statements not accepting
--
echo
# "Access compatibility" syntax
--
echo
#
CREATE
TABLE
t1
(
id
INT
);
CREATE
TABLE
t2
LIKE
t1
;
CREATE
TABLE
t3
LIKE
t1
;
DELETE
FROM
t1
.*
,
test
.
t2
.*
,
a
.*
USING
t1
,
t2
,
t3
AS
a
;
DROP
TABLE
t1
,
t2
,
t3
;
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
sql/sql_yacc.yy
View file @
cfcc7e26
...
@@ -1297,6 +1297,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
...
@@ -1297,6 +1297,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%type <table>
%type <table>
table_ident table_ident_nodb references xid
table_ident table_ident_nodb references xid
table_ident_opt_wild
%type <simple_string>
%type <simple_string>
remember_name remember_end opt_ident opt_db text_or_password
remember_name remember_end opt_ident opt_db text_or_password
...
@@ -9622,7 +9623,7 @@ table_alias_ref_list:
...
@@ -9622,7 +9623,7 @@ table_alias_ref_list:
;
;
table_alias_ref:
table_alias_ref:
table_ident
table_ident
_opt_wild
{
{
if (!Select->add_table_to_list(YYTHD, $1, NULL,
if (!Select->add_table_to_list(YYTHD, $1, NULL,
TL_OPTION_UPDATING | TL_OPTION_ALIAS,
TL_OPTION_UPDATING | TL_OPTION_ALIAS,
...
@@ -11405,6 +11406,21 @@ table_ident:
...
@@ -11405,6 +11406,21 @@ table_ident:
}
}
;
;
table_ident_opt_wild:
ident opt_wild
{
$$= new Table_ident($1);
if ($$ == NULL)
MYSQL_YYABORT;
}
| ident '.' ident opt_wild
{
$$= new Table_ident(YYTHD, $1,$3,0);
if ($$ == NULL)
MYSQL_YYABORT;
}
;
table_ident_nodb:
table_ident_nodb:
ident
ident
{
{
...
...
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