mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
manual merge
This commit is contained in:
commit
03234c48cf
3 changed files with 19 additions and 8 deletions
|
@ -635,13 +635,12 @@ int hp_key_cmp(HP_KEYDEF *keydef, const byte *rec, const byte *key)
|
|||
key+= 2; /* skip key pack length */
|
||||
if (cs->mbmaxlen > 1)
|
||||
{
|
||||
uint char_length= seg->length / cs->mbmaxlen;
|
||||
char_length_key= my_charpos(cs, key, key + char_length_key,
|
||||
char_length);
|
||||
set_if_smaller(char_length_key, seg->length);
|
||||
char_length_rec= my_charpos(cs, pos, pos + char_length_rec,
|
||||
char_length);
|
||||
set_if_smaller(char_length_rec, seg->length);
|
||||
uint char_length1, char_length2;
|
||||
char_length1= char_length2= seg->length / cs->mbmaxlen;
|
||||
char_length1= my_charpos(cs, key, key + char_length_key, char_length1);
|
||||
set_if_smaller(char_length_key, char_length1);
|
||||
char_length2= my_charpos(cs, pos, pos + char_length_rec, char_length2);
|
||||
set_if_smaller(char_length_rec, char_length2);
|
||||
}
|
||||
|
||||
if (cs->coll->strnncollsp(seg->charset,
|
||||
|
|
|
@ -748,3 +748,8 @@ TABLE_CONSTRAINTS TABLE_NAME select
|
|||
KEY_COLUMN_USAGE TABLE_NAME select
|
||||
delete from mysql.user where user='mysqltest_4';
|
||||
flush privileges;
|
||||
SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
|
||||
table_schema count(*)
|
||||
information_schema 15
|
||||
mysql 17
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# This test uses grants, which can't get tested for embedded server
|
||||
# This test uses grants, which can't get tested for embedded server
|
||||
-- source include/not_embedded.inc
|
||||
|
||||
# Test for information_schema.schemata &
|
||||
|
@ -486,3 +486,10 @@ where COLUMN_NAME='TABLE_NAME';
|
|||
connection default;
|
||||
delete from mysql.user where user='mysqltest_4';
|
||||
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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue