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
4decc03b
Commit
4decc03b
authored
May 06, 2021
by
Dmitry Shulga
Committed by
Sergei Golubchik
Jun 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16708: Unsupported commands for prepared statements
Fixed the test main.view
parent
5478ca77
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
mysql-test/main/view.test
mysql-test/main/view.test
+4
-0
sql/item.cc
sql/item.cc
+4
-1
No files found.
mysql-test/main/view.test
View file @
4decc03b
...
...
@@ -3081,7 +3081,9 @@ create view v1 as select * from t1 order by f2;
select
*
from
v1
;
explain
extended
select
*
from
v1
;
select
*
from
v1
order
by
f1
;
--
enable_prepare_warnings
explain
extended
select
*
from
v1
order
by
f1
;
--
disable_prepare_warnings
drop
view
v1
;
drop
table
t1
;
...
...
@@ -4421,7 +4423,9 @@ CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT f1 FROM t1;
CREATE
ALGORITHM
=
MERGE
VIEW
v2
AS
SELECT
f1
FROM
v1
ORDER
BY
f1
;
SELECT
*
FROM
v2
AS
a1
,
v2
AS
a2
;
--
enable_prepare_warnings
EXPLAIN
EXTENDED
SELECT
*
FROM
v2
AS
a1
,
v2
AS
a2
;
--
disable_prepare_warnings
DROP
VIEW
v1
,
v2
;
DROP
TABLE
t1
;
...
...
sql/item.cc
View file @
4decc03b
...
...
@@ -5531,8 +5531,11 @@ Item_field::fix_outer_field(THD *thd, Field **from_field, Item **reference)
*/
Name_resolution_context
*
last_checked_context
=
context
;
Item
**
ref
=
(
Item
**
)
not_found_item
;
SELECT_LEX
*
current_sel
=
thd
->
lex
->
current_select
;
Name_resolution_context
*
outer_context
=
0
;
SELECT_LEX
*
select
=
0
;
if
(
current_sel
->
master_unit
()
->
outer_select
())
outer_context
=
context
->
outer_context
;
/*
...
...
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