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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2ae1faaf
Commit
2ae1faaf
authored
May 09, 2005
by
gluh@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/gluh/MySQL/Bugs/5.0.9404
parents
fa8bf7bc
639f7ccb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
heap/hp_hash.c
heap/hp_hash.c
+6
-7
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+4
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+8
-1
No files found.
heap/hp_hash.c
View file @
2ae1faaf
...
@@ -635,13 +635,12 @@ int hp_key_cmp(HP_KEYDEF *keydef, const byte *rec, const byte *key)
...
@@ -635,13 +635,12 @@ int hp_key_cmp(HP_KEYDEF *keydef, const byte *rec, const byte *key)
key
+=
2
;
/* skip key pack length */
key
+=
2
;
/* skip key pack length */
if
(
cs
->
mbmaxlen
>
1
)
if
(
cs
->
mbmaxlen
>
1
)
{
{
uint
char_length
=
seg
->
length
/
cs
->
mbmaxlen
;
uint
char_length1
,
char_length2
;
char_length_key
=
my_charpos
(
cs
,
key
,
key
+
char_length_key
,
char_length1
=
char_length2
=
seg
->
length
/
cs
->
mbmaxlen
;
char_length
);
char_length1
=
my_charpos
(
cs
,
key
,
key
+
char_length_key
,
char_length1
);
set_if_smaller
(
char_length_key
,
seg
->
length
);
set_if_smaller
(
char_length_key
,
char_length1
);
char_length_rec
=
my_charpos
(
cs
,
pos
,
pos
+
char_length_rec
,
char_length2
=
my_charpos
(
cs
,
pos
,
pos
+
char_length_rec
,
char_length2
);
char_length
);
set_if_smaller
(
char_length_rec
,
char_length2
);
set_if_smaller
(
char_length_rec
,
seg
->
length
);
}
}
if
(
cs
->
coll
->
strnncollsp
(
seg
->
charset
,
if
(
cs
->
coll
->
strnncollsp
(
seg
->
charset
,
...
...
mysql-test/r/information_schema.result
View file @
2ae1faaf
...
@@ -748,3 +748,7 @@ TABLE_CONSTRAINTS TABLE_NAME select
...
@@ -748,3 +748,7 @@ TABLE_CONSTRAINTS TABLE_NAME select
KEY_COLUMN_USAGE TABLE_NAME select
KEY_COLUMN_USAGE TABLE_NAME select
delete from mysql.user where user='mysqltest_4';
delete from mysql.user where user='mysqltest_4';
flush privileges;
flush privileges;
SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
table_schema count(*)
information_schema 15
mysql 17
mysql-test/t/information_schema.test
View file @
2ae1faaf
...
@@ -486,3 +486,10 @@ where COLUMN_NAME='TABLE_NAME';
...
@@ -486,3 +486,10 @@ where COLUMN_NAME='TABLE_NAME';
connection
default
;
connection
default
;
delete
from
mysql
.
user
where
user
=
'mysqltest_4'
;
delete
from
mysql
.
user
where
user
=
'mysqltest_4'
;
flush
privileges
;
flush
privileges
;
#
# Bug #9404 information_schema: Weird error messages
# with SELECT SUM() ... GROUP BY queries
#
SELECT
table_schema
,
count
(
*
)
FROM
information_schema
.
TABLES
GROUP
BY
TABLE_SCHEMA
;
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