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
7c8192df
Commit
7c8192df
authored
Sep 19, 2009
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
cbb8c3f0
55298d1b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
13 deletions
+8
-13
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-2
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+1
-1
mysql-test/suite/maria/r/maria3.result
mysql-test/suite/maria/r/maria3.result
+2
-2
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+3
-0
sql/sql_table.cc
sql/sql_table.cc
+0
-8
No files found.
mysql-test/mysql-test-run.pl
View file @
7c8192df
...
...
@@ -4433,7 +4433,7 @@ sub mysqld_start ($$) {
if
(
IS_WINDOWS
)
{
# Trick the server to send output to stderr, with --console
if
(
!
(
join
('
',
@$args
)
=~
/--log-error/
))
{
if
(
!
(
grep
(
/^--log-error/
,
@$args
)
))
{
mtr_add_arg
(
$args
,
"
--console
");
}
}
...
...
@@ -5058,7 +5058,7 @@ sub start_mysqltest ($) {
if
(
IS_WINDOWS
)
{
# Trick the server to send output to stderr, with --console
if
(
!
(
join
('
',
@$args
)
=~
/--log-error/
))
{
if
(
!
(
grep
(
/^--server-arg=--log-error/
,
@$args
)
))
{
mtr_add_arg
(
$args
,
"
--server-arg=--console
");
}
}
...
...
mysql-test/r/myisam.result
View file @
7c8192df
...
...
@@ -2234,7 +2234,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`n` int(11) NOT NULL,
`c` char(1) DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=latin1
)
ENGINE=MyISAM DEFAULT CHARSET=latin1
TRANSACTIONAL=1
drop table t1;
CREATE TABLE t1 (line LINESTRING NOT NULL) engine=myisam;
INSERT INTO t1 VALUES (GeomFromText("POINT(0 0)"));
...
...
mysql-test/suite/maria/r/maria3.result
View file @
7c8192df
...
...
@@ -518,7 +518,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`n` int(11) NOT NULL,
`c` char(1) DEFAULT NULL
) ENGINE=MARIA DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
) ENGINE=MARIA DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
TRANSACTIONAL=1
drop table t1;
create table t1 (n int not null, c char(1)) engine=myisam transactional=1;
Warnings:
...
...
@@ -529,7 +529,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`n` int(11) NOT NULL,
`c` char(1) DEFAULT NULL
) ENGINE=MARIA DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
) ENGINE=MARIA DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
TRANSACTIONAL=1
drop table t1;
create table t1 (a int, key(a)) transactional=0;
insert into t1 values (0),(1),(2),(3),(4);
...
...
mysql-test/t/myisam.test
View file @
7c8192df
...
...
@@ -1478,7 +1478,10 @@ let $MYSQLD_DATADIR= `select @@datadir`;
--
exec
$MYISAMCHK
-
d
$MYSQLD_DATADIR
/
test
/
t1
DROP
TABLE
t1
;
#
# Test warnings with transactional=1 with MyISAM
# MariaDB: Note that the table will still have 'TRANSACTIONAL=1' attribute.
# That's the intended behavior atm.
#
create
table
t1
(
n
int
not
null
,
c
char
(
1
))
transactional
=
1
;
show
create
table
t1
;
...
...
sql/sql_table.cc
View file @
7c8192df
...
...
@@ -3747,19 +3747,11 @@ bool mysql_create_table_no_lock(THD *thd,
/* Give warnings for not supported table options */
if
(
create_info
->
transactional
&&
!
file
->
ht
->
commit
)
{
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_ILLEGAL_HA_CREATE_OPTION
,
ER
(
ER_ILLEGAL_HA_CREATE_OPTION
),
file
->
engine_name
()
->
str
,
"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
));
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