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
4647982e
Commit
4647982e
authored
Nov 07, 2000
by
tim@threads.polyesthetic.msg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to make ALTER TABLE and DELETE FROM TABLE work properly
with BEGIN WORK.
parent
aacaaf59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
sql/sql_delete.cc
sql/sql_delete.cc
+2
-1
sql/sql_parse.cc
sql/sql_parse.cc
+2
-1
No files found.
sql/sql_delete.cc
View file @
4647982e
...
@@ -141,7 +141,8 @@ int mysql_delete(THD *thd,TABLE_LIST *table_list,COND *conds,ha_rows limit,
...
@@ -141,7 +141,8 @@ int mysql_delete(THD *thd,TABLE_LIST *table_list,COND *conds,ha_rows limit,
use_generate_table
=
(
!
using_limit
&&
!
conds
&&
use_generate_table
=
(
!
using_limit
&&
!
conds
&&
!
(
specialflag
&
!
(
specialflag
&
(
SPECIAL_NO_NEW_FUNC
|
SPECIAL_SAFE_MODE
))
&&
(
SPECIAL_NO_NEW_FUNC
|
SPECIAL_SAFE_MODE
))
&&
(
thd
->
options
&
OPTION_AUTO_COMMIT
));
(
thd
->
options
&
OPTION_AUTO_COMMIT
)
&&
!
(
thd
->
options
&
OPTION_BEGIN
));
if
(
use_generate_table
&&
!
thd
->
open_tables
)
if
(
use_generate_table
&&
!
thd
->
open_tables
)
{
{
error
=
generate_table
(
thd
,
table_list
,(
TABLE
*
)
0
);
error
=
generate_table
(
thd
,
table_list
,(
TABLE
*
)
0
);
...
...
sql/sql_parse.cc
View file @
4647982e
...
@@ -1150,7 +1150,8 @@ mysql_execute_command(void)
...
@@ -1150,7 +1150,8 @@ mysql_execute_command(void)
}
}
}
}
/* ALTER TABLE ends previous transaction */
/* ALTER TABLE ends previous transaction */
if
(
!
(
thd
->
options
&
OPTION_AUTO_COMMIT
)
&&
ha_commit
(
thd
))
if
((
!
(
thd
->
options
&
OPTION_AUTO_COMMIT
)
||
(
thd
->
options
&
OPTION_BEGIN
))
&&
ha_commit
(
thd
))
res
=
-
1
;
res
=
-
1
;
else
else
res
=
mysql_alter_table
(
thd
,
lex
->
db
,
lex
->
name
,
res
=
mysql_alter_table
(
thd
,
lex
->
db
,
lex
->
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