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
f78278ef
Commit
f78278ef
authored
Sep 16, 2009
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix myisam.test failure: let CREATE TABLE discard TRANSACTIONAL=1 attribute
if the storage engine doesn't support transactions.
parent
3d60f05f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
sql/sql_table.cc
sql/sql_table.cc
+8
-0
No files found.
sql/sql_table.cc
View file @
f78278ef
...
@@ -3747,11 +3747,19 @@ bool mysql_create_table_no_lock(THD *thd,
...
@@ -3747,11 +3747,19 @@ bool mysql_create_table_no_lock(THD *thd,
/* Give warnings for not supported table options */
/* Give warnings for not supported table options */
if
(
create_info
->
transactional
&&
!
file
->
ht
->
commit
)
if
(
create_info
->
transactional
&&
!
file
->
ht
->
commit
)
{
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_ILLEGAL_HA_CREATE_OPTION
,
ER_ILLEGAL_HA_CREATE_OPTION
,
ER
(
ER_ILLEGAL_HA_CREATE_OPTION
),
ER
(
ER_ILLEGAL_HA_CREATE_OPTION
),
file
->
engine_name
()
->
str
,
file
->
engine_name
()
->
str
,
"TRANSACTIONAL=1"
);
"TRANSACTIONAL=1"
);
/*
MariaDB: need to do the same for row_format and page_checksum
options. See MBUG#425916
*/
create_info
->
transactional
=
HA_CHOICE_UNDEF
;
create_info
->
used_fields
&=
~
HA_CREATE_USED_TRANSACTIONAL
;
}
VOID
(
pthread_mutex_lock
(
&
LOCK_open
));
VOID
(
pthread_mutex_lock
(
&
LOCK_open
));
if
(
!
internal_tmp_table
&&
!
(
create_info
->
options
&
HA_LEX_CREATE_TMP_TABLE
))
if
(
!
internal_tmp_table
&&
!
(
create_info
->
options
&
HA_LEX_CREATE_TMP_TABLE
))
...
...
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