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
34d9dfb2
Commit
34d9dfb2
authored
Mar 12, 2008
by
anozdrin/alik@quad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix manual merge.
parent
18125abf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
sql/sql_delete.cc
sql/sql_delete.cc
+9
-7
No files found.
sql/sql_delete.cc
View file @
34d9dfb2
...
...
@@ -103,10 +103,6 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
/* Error evaluating val_int(). */
DBUG_RETURN
(
TRUE
);
}
/* NOTE: TRUNCATE must not invoke triggers. */
triggers_applicable
=
table
->
triggers
&&
thd
->
lex
->
sql_command
!=
SQLCOM_TRUNCATE
;
/*
Test if the user wants to delete all rows and deletion doesn't have
...
...
@@ -129,9 +125,9 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
*/
if
(
!
using_limit
&&
const_cond_result
&&
!
(
specialflag
&
(
SPECIAL_NO_NEW_FUNC
|
SPECIAL_SAFE_MODE
))
&&
!
(
triggers_applicable
&&
thd
->
current_stmt_binlog_row_based
&&
table
->
triggers
->
has_delete_triggers
(
)))
(
thd
->
lex
->
sql_command
==
SQLCOM_TRUNCATE
||
(
!
thd
->
current_stmt_binlog_row_based
&&
!
(
table
->
triggers
&&
table
->
triggers
->
has_delete_triggers
())
)))
{
/* Update the table->file->stats.records number */
table
->
file
->
info
(
HA_STATUS_VARIABLE
|
HA_STATUS_NO_LOCK
);
...
...
@@ -255,6 +251,12 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
init_ftfuncs
(
thd
,
select_lex
,
1
);
thd_proc_info
(
thd
,
"updating"
);
/* NOTE: TRUNCATE must not invoke triggers. */
triggers_applicable
=
table
->
triggers
&&
thd
->
lex
->
sql_command
!=
SQLCOM_TRUNCATE
;
if
(
triggers_applicable
&&
table
->
triggers
->
has_triggers
(
TRG_EVENT_DELETE
,
TRG_ACTION_AFTER
))
...
...
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