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
64cab9d7
Commit
64cab9d7
authored
Jan 06, 2006
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fix and a safety fix for handler
parent
b0a5ea01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
sql/sql_handler.cc
sql/sql_handler.cc
+7
-7
sql/sql_trigger.cc
sql/sql_trigger.cc
+3
-2
No files found.
sql/sql_handler.cc
View file @
64cab9d7
...
...
@@ -414,6 +414,13 @@ bool mysql_ha_read(THD *thd, TABLE_LIST *tables,
}
tables
->
table
=
table
;
HANDLER_TABLES_HACK
(
thd
);
lock
=
mysql_lock_tables
(
thd
,
&
tables
->
table
,
1
,
0
,
&
not_used
);
HANDLER_TABLES_HACK
(
thd
);
if
(
!
lock
)
goto
err0
;
// mysql_lock_tables() printed error message already
if
(
cond
&&
((
!
cond
->
fixed
&&
cond
->
fix_fields
(
thd
,
&
cond
))
||
cond
->
check_cols
(
1
)))
goto
err0
;
...
...
@@ -427,13 +434,6 @@ bool mysql_ha_read(THD *thd, TABLE_LIST *tables,
}
}
HANDLER_TABLES_HACK
(
thd
);
lock
=
mysql_lock_tables
(
thd
,
&
tables
->
table
,
1
,
0
,
&
not_used
);
HANDLER_TABLES_HACK
(
thd
);
if
(
!
lock
)
goto
err0
;
// mysql_lock_tables() printed error message already
if
(
insert_fields
(
thd
,
&
thd
->
lex
->
select_lex
.
context
,
tables
->
db
,
tables
->
alias
,
&
it
,
0
))
goto
err0
;
...
...
sql/sql_trigger.cc
View file @
64cab9d7
...
...
@@ -1189,9 +1189,10 @@ bool Table_triggers_list::process_triggers(THD *thd, trg_event_type event,
save_query_tables_own_last
=
thd
->
lex
->
query_tables_own_last
;
thd
->
lex
->
query_tables_own_last
=
0
;
res
=
check_table_access
(
thd
,
SELECT_ACL
|
UPDATE_ACL
,
&
table_list
,
0
);
err_status
=
check_table_access
(
thd
,
SELECT_ACL
|
UPDATE_ACL
,
&
table_list
,
0
);
thd
->
lex
->
query_tables_own_last
=
save_query_tables_own_last
;
if
(
re
s
)
if
(
err_statu
s
)
{
sp_restore_security_context
(
thd
,
save_ctx
);
return
TRUE
;
...
...
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