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
bb62c802
Commit
bb62c802
authored
Sep 04, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory leaks fixed
parent
161662ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
sql/sql_derived.cc
sql/sql_derived.cc
+5
-3
sql/sql_view.cc
sql/sql_view.cc
+2
-4
No files found.
sql/sql_derived.cc
View file @
bb62c802
...
...
@@ -220,10 +220,12 @@ static int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
table
->
next
=
thd
->
derived_tables
;
thd
->
derived_tables
=
table
;
}
}
else
free_tmp_table
(
thd
,
table
);
exit:
delete
derived_result
;
lex
->
current_select
=
save_current_select
;
}
delete
derived_result
;
lex
->
current_select
=
save_current_select
;
DBUG_RETURN
(
res
);
}
sql/sql_view.cc
View file @
bb62c802
...
...
@@ -339,8 +339,6 @@ static File_option view_parameters[]=
FILE_OPTIONS_STRING
}
};
static
const
uint
required_view_parameters
=
6
;
static
LEX_STRING
view_file_type
[]
=
{{(
char
*
)
"VIEW"
,
4
}};
...
...
@@ -604,8 +602,6 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
{
/* move SP to main LEX */
sp_merge_funs
(
old_lex
,
lex
);
if
(
lex
->
spfuns
.
array
.
buffer
)
hash_free
(
&
lex
->
spfuns
);
if
(
old_lex
->
proc_table
==
0
&&
(
old_lex
->
proc_table
=
(
TABLE_LIST
*
)
thd
->
calloc
(
sizeof
(
TABLE_LIST
)))
!=
0
)
...
...
@@ -619,6 +615,8 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
include_proc_table
=
1
;
}
}
if
(
lex
->
spfuns
.
array
.
buffer
)
hash_free
(
&
lex
->
spfuns
);
old_next
=
table
->
next_global
;
if
((
table
->
next_global
=
lex
->
query_tables
))
...
...
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