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
9e5828f1
Commit
9e5828f1
authored
Jul 03, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test failure in mysql-test/t/type_bit_innodb.test
- Run ANALYZE TABLE after insert, like mysql-5.6 does.
parent
bff40f3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
mysql-test/r/type_bit_innodb.result
mysql-test/r/type_bit_innodb.result
+2
-0
mysql-test/t/type_bit_innodb.test
mysql-test/t/type_bit_innodb.test
+6
-0
No files found.
mysql-test/r/type_bit_innodb.result
View file @
9e5828f1
...
...
@@ -84,6 +84,7 @@ a+0
2
3
alter table t1 add key (a);
analyze table t1;
explain select a+0 from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL a 2 NULL 4 Using index
...
...
@@ -102,6 +103,7 @@ insert into t1 values
(116, 390), (119, 368), (87, 351), (123, 411), (24, 398), (34, 202), (28, 499),
(30, 83), (5, 178), (60, 343), (4, 245), (104, 280), (106, 446), (127, 403),
(44, 307), (68, 454), (57, 135);
analyze table t1;
explain select a+0 from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL a 5 NULL 38 Using index
...
...
mysql-test/t/type_bit_innodb.test
View file @
9e5828f1
...
...
@@ -50,6 +50,9 @@ create table t1 (a bit(2)) engine=innodb;
insert
into
t1
values
(
b
'00'
),
(
b
'01'
),
(
b
'10'
),
(
b
'100'
);
select
a
+
0
from
t1
;
alter
table
t1
add
key
(
a
);
--
disable_result_log
analyze
table
t1
;
--
enable_result_log
explain
select
a
+
0
from
t1
;
select
a
+
0
from
t1
;
drop
table
t1
;
...
...
@@ -62,6 +65,9 @@ insert into t1 values
(
116
,
390
),
(
119
,
368
),
(
87
,
351
),
(
123
,
411
),
(
24
,
398
),
(
34
,
202
),
(
28
,
499
),
(
30
,
83
),
(
5
,
178
),
(
60
,
343
),
(
4
,
245
),
(
104
,
280
),
(
106
,
446
),
(
127
,
403
),
(
44
,
307
),
(
68
,
454
),
(
57
,
135
);
--
disable_result_log
analyze
table
t1
;
--
enable_result_log
explain
select
a
+
0
from
t1
;
select
a
+
0
from
t1
;
explain
select
b
+
0
from
t1
;
...
...
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