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
4df16522
Commit
4df16522
authored
Jul 27, 2005
by
pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing initialisation of table->s->db in lock_table_name
Bug #12112
parent
5ac378ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
sql/lock.cc
sql/lock.cc
+1
-0
No files found.
sql/lock.cc
View file @
4df16522
...
@@ -601,6 +601,7 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list)
...
@@ -601,6 +601,7 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list)
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
table
->
s
=
&
table
->
share_not_to_be_used
;
table
->
s
=
&
table
->
share_not_to_be_used
;
memcpy
((
table
->
s
->
table_cache_key
=
(
char
*
)
(
table
+
1
)),
key
,
key_length
);
memcpy
((
table
->
s
->
table_cache_key
=
(
char
*
)
(
table
+
1
)),
key
,
key_length
);
table
->
s
->
db
=
table
->
s
->
table_cache_key
;
table
->
s
->
key_length
=
key_length
;
table
->
s
->
key_length
=
key_length
;
table
->
in_use
=
thd
;
table
->
in_use
=
thd
;
table
->
locked_by_name
=
1
;
table
->
locked_by_name
=
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