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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
062b7bfa
Commit
062b7bfa
authored
Oct 05, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better comments
parent
abcf14e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
sql/sql_delete.cc
sql/sql_delete.cc
+0
-2
sql/sql_lex.h
sql/sql_lex.h
+7
-0
sql/sql_update.cc
sql/sql_update.cc
+0
-2
No files found.
sql/sql_delete.cc
View file @
062b7bfa
...
...
@@ -245,8 +245,6 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
table
->
map
=
1
;
query_plan
.
select_lex
=
&
thd
->
lex
->
select_lex
;
query_plan
.
table
=
table
;
//psergey-todo: Ugly, discuss with Sanja
query_plan
.
updating_a_view
=
test
(
table_list
->
view
);
if
(
mysql_prepare_delete
(
thd
,
table_list
,
select_lex
->
with_wild
,
...
...
sql/sql_lex.h
View file @
062b7bfa
...
...
@@ -2382,6 +2382,13 @@ class Update_plan
bool
impossible_where
;
bool
no_partitions
;
public:
/*
When single-table UPDATE updates a VIEW, that VIEW's select is still
listed as the first child. When we print EXPLAIN, it looks like a
subquery.
In order to get rid of it, updating_a_view=TRUE means that first child
select should not be shown when printing EXPLAIN.
*/
bool
updating_a_view
;
TABLE
*
table
;
...
...
sql/sql_update.cc
View file @
062b7bfa
...
...
@@ -314,8 +314,6 @@ int mysql_update(THD *thd,
my_error
(
ER_NON_UPDATABLE_TABLE
,
MYF
(
0
),
table_list
->
alias
,
"UPDATE"
);
DBUG_RETURN
(
1
);
}
//psergey-todo: Ugly, discuss with Sanja
query_plan
.
updating_a_view
=
test
(
table_list
->
view
);
/* Calculate "table->covering_keys" based on the WHERE */
...
...
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