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
6efe24cf
Commit
6efe24cf
authored
Oct 25, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory leak closed
parent
d4b6af08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
sql/sql_base.cc
sql/sql_base.cc
+2
-1
No files found.
sql/sql_base.cc
View file @
6efe24cf
...
...
@@ -1530,12 +1530,13 @@ TABLE *open_temporary_table(THD *thd, const char *path, const char *db,
ha_open_options
,
tmp_table
))
{
my_free
((
gptr
)
tmp_table
,
MYF
(
0
));
DBUG_RETURN
(
0
);
}
tmp_table
->
file
->
extra
(
HA_EXTRA_NO_READCHECK
);
// Not needed in SQL
tmp_table
->
reginfo
.
lock_type
=
TL_WRITE
;
// Simulate locked
tmp_table
->
tmp_table
=
(
tmp_table
->
file
->
has_transactions
()
?
tmp_table
->
tmp_table
=
(
tmp_table
->
file
->
has_transactions
()
?
TRANSACTIONAL_TMP_TABLE
:
TMP_TABLE
);
tmp_table
->
table_cache_key
=
(
char
*
)
(
tmp_table
+
1
);
tmp_table
->
key_length
=
(
uint
)
(
strmov
((
tmp_table
->
real_name
=
...
...
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