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
b4dc75c8
Commit
b4dc75c8
authored
Dec 12, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test results that may change from run to run
Added comments (from code review on pull)
parent
3b14ba64
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
mysql-test/r/heap.result
mysql-test/r/heap.result
+1
-1
mysql-test/r/ps_5merge.result
mysql-test/r/ps_5merge.result
+2
-2
mysql-test/t/heap.test
mysql-test/t/heap.test
+2
-0
sql/sql_show.cc
sql/sql_show.cc
+8
-4
No files found.
mysql-test/r/heap.result
View file @
b4dc75c8
...
...
@@ -622,7 +622,7 @@ qq
*a *a*a *
explain select * from t1 where v='a';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref v v 13 const
7
Using where
1 SIMPLE t1 ref v v 13 const
#
Using where
drop table t1;
create table t1 (a char(10), unique using btree (a)) engine=heap;
insert into t1 values ('a');
...
...
mysql-test/r/ps_5merge.result
View file @
b4dc75c8
...
...
@@ -1698,7 +1698,7 @@ t5 CREATE TABLE `t5` (
`param03` double default NULL,
`const04` varchar(3) NOT NULL default '',
`param04` longtext,
`const05` binary(3) NOT NULL default '',
`const05`
var
binary(3) NOT NULL default '',
`param05` longblob,
`const06` varchar(10) NOT NULL default '',
`param06` longtext,
...
...
@@ -4707,7 +4707,7 @@ t5 CREATE TABLE `t5` (
`param03` double default NULL,
`const04` varchar(3) NOT NULL default '',
`param04` longtext,
`const05` var
char
(3) NOT NULL default '',
`const05` var
binary
(3) NOT NULL default '',
`param05` longblob,
`const06` varchar(10) NOT NULL default '',
`param06` longtext,
...
...
mysql-test/t/heap.test
View file @
b4dc75c8
...
...
@@ -360,6 +360,8 @@ explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a '
--
error
1062
alter
table
t1
add
unique
(
v
);
select
concat
(
'*'
,
v
,
'*'
,
c
,
'*'
,
t
,
'*'
)
as
qq
from
t1
where
v
=
'a'
order
by
length
(
concat
(
'*'
,
v
,
'*'
,
c
,
'*'
,
t
,
'*'
));
# Number of rows is not constant for b-trees keys
--
replace_column
9
#
explain
select
*
from
t1
where
v
=
'a'
;
drop
table
t1
;
...
...
sql/sql_show.cc
View file @
b4dc75c8
...
...
@@ -2135,6 +2135,10 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
}
}
}
/*
If we have information schema its always the first table and only
the first table. Reset for other tables.
*/
with_i_schema
=
0
;
}
}
...
...
@@ -2838,7 +2842,7 @@ static int get_schema_views_record(THD *thd, struct st_table_list *tables,
}
void
store_const
ar
ints
(
TABLE
*
table
,
const
char
*
db
,
const
char
*
tname
,
void
store_const
ra
ints
(
TABLE
*
table
,
const
char
*
db
,
const
char
*
tname
,
const
char
*
key_name
,
uint
key_len
,
const
char
*
con_type
,
uint
con_len
)
{
...
...
@@ -2874,10 +2878,10 @@ static int get_schema_constarints_record(THD *thd, struct st_table_list *tables,
continue
;
if
(
i
==
primary_key
&&
!
strcmp
(
key_info
->
name
,
primary_key_name
))
store_const
ar
ints
(
table
,
base_name
,
file_name
,
key_info
->
name
,
store_const
ra
ints
(
table
,
base_name
,
file_name
,
key_info
->
name
,
strlen
(
key_info
->
name
),
"PRIMARY KEY"
,
11
);
else
if
(
key_info
->
flags
&
HA_NOSAME
)
store_const
ar
ints
(
table
,
base_name
,
file_name
,
key_info
->
name
,
store_const
ra
ints
(
table
,
base_name
,
file_name
,
key_info
->
name
,
strlen
(
key_info
->
name
),
"UNIQUE"
,
6
);
}
...
...
@@ -2886,7 +2890,7 @@ static int get_schema_constarints_record(THD *thd, struct st_table_list *tables,
List_iterator_fast
<
FOREIGN_KEY_INFO
>
it
(
f_key_list
);
while
((
f_key_info
=
it
++
))
{
store_const
ar
ints
(
table
,
base_name
,
file_name
,
f_key_info
->
forein_id
->
str
,
store_const
ra
ints
(
table
,
base_name
,
file_name
,
f_key_info
->
forein_id
->
str
,
strlen
(
f_key_info
->
forein_id
->
str
),
"FOREIGN KEY"
,
11
);
}
}
...
...
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