Skip to content

Commit afce541

Browse files
committed
Merge branch 'merge-xtradb-5.5' into 5.5
5.5.47-37.7
2 parents 5d478f5 + 3cfd36b commit afce541

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

storage/xtradb/handler/ha_innodb.cc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7744,7 +7744,8 @@ create_table_def(
77447744

77457745
/* MySQL does the name length check. But we do additional check
77467746
on the name length here */
7747-
if (strlen(table_name) > MAX_FULL_NAME_LEN) {
7747+
const size_ttable_name_len = strlen(table_name);
7748+
if (table_name_len > MAX_FULL_NAME_LEN) {
77487749
push_warning_printf(
77497750
(THD*) trx->mysql_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
77507751
ER_TABLE_NAME,
@@ -7753,6 +7754,15 @@ create_table_def(
77537754
DBUG_RETURN(ER_TABLE_NAME);
77547755
}
77557756

7757+
if (table_name[table_name_len - 1] == '/') {
7758+
push_warning_printf(
7759+
(THD*) trx->mysql_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
7760+
ER_TABLE_NAME,
7761+
"InnoDB: Table name is empty");
7762+
7763+
DBUG_RETURN(ER_WRONG_TABLE_NAME);
7764+
}
7765+
77567766
n_cols = form->s->fields;
77577767

77587768
/* We pass 0 as the space id, and determine at a lower level the space

storage/xtradb/include/univ.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ component, i.e. we show M.N.P as M.N */
6464
(INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR)
6565

6666
#ifndef PERCONA_INNODB_VERSION
67-
#define PERCONA_INNODB_VERSION 37.6
67+
#define PERCONA_INNODB_VERSION 37.7
6868
#endif
6969

70-
#define INNODB_VERSION_STR"5.5.46-MariaDB-" IB_TO_STR(PERCONA_INNODB_VERSION)
70+
#define INNODB_VERSION_STR"5.5.47-MariaDB-" IB_TO_STR(PERCONA_INNODB_VERSION)
7171

7272
#define REFMAN "http://dev.mysql.com/doc/refman/"\
7373
IB_TO_STR(MYSQL_MAJOR_VERSION) "." \

storage/xtradb/log/log0recv.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*****************************************************************************
22
3-
Copyright (c) 1997, 2010, Innobase Oy. All Rights Reserved.
3+
Copyright (c) 1997, 2015, Oracle and/or its affiliates. All Rights Reserved.
44
55
This program is free software; you can redistribute it and/or modify it under
66
the terms of the GNU General Public License as published by the Free Software
@@ -766,6 +766,10 @@ recv_find_max_checkpoint(
766766

767767
fprintf(stderr,
768768
"InnoDB: No valid checkpoint found.\n"
769+
"InnoDB: If you are attempting downgrade"
770+
" from MySQL 5.7.9 or later,\n"
771+
"InnoDB: please refer to " REFMAN
772+
"upgrading-downgrading.html\n"
769773
"InnoDB: If this error appears when you are"
770774
" creating an InnoDB database,\n"
771775
"InnoDB: the problem may be that during"

0 commit comments

Comments
 (0)