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
d6aed37a
Commit
d6aed37a
authored
Jan 10, 2013
by
Praveenkumar Hulakund
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 5.1 to 5.5
parents
a69f4a05
79438d75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
sql/sql_view.cc
sql/sql_view.cc
+9
-3
No files found.
sql/sql_view.cc
View file @
d6aed37a
...
@@ -1143,9 +1143,10 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
...
@@ -1143,9 +1143,10 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
TODO: when VIEWs will be stored in cache, table mem_root should
TODO: when VIEWs will be stored in cache, table mem_root should
be used here
be used here
*/
*/
if
(
parser
->
parse
((
uchar
*
)
table
,
thd
->
mem_root
,
view_parameters
,
if
((
result
=
parser
->
parse
((
uchar
*
)
table
,
thd
->
mem_root
,
required_view_parameters
,
&
file_parser_dummy_hook
))
view_parameters
,
required_view_parameters
,
goto
err
;
&
file_parser_dummy_hook
)))
goto
end
;
/*
/*
check old format view .frm
check old format view .frm
...
@@ -1208,6 +1209,11 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
...
@@ -1208,6 +1209,11 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
now Lex placed in statement memory
now Lex placed in statement memory
*/
*/
table
->
view
=
lex
=
thd
->
lex
=
(
LEX
*
)
new
(
thd
->
mem_root
)
st_lex_local
;
table
->
view
=
lex
=
thd
->
lex
=
(
LEX
*
)
new
(
thd
->
mem_root
)
st_lex_local
;
if
(
!
table
->
view
)
{
result
=
true
;
goto
end
;
}
{
{
char
old_db_buf
[
NAME_LEN
+
1
];
char
old_db_buf
[
NAME_LEN
+
1
];
...
...
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