Skip to content

Commit

Permalink
Merge branch 'merge-xtradb-5.5' into 5.5
Browse files Browse the repository at this point in the history
5.5.47-37.7
  • Loading branch information
vuvova committed Feb 9, 2016
2 parents 5d478f5 + 3cfd36b commit afce541
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
12 changes: 11 additions & 1 deletion storage/xtradb/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7744,7 +7744,8 @@ create_table_def(

/* MySQL does the name length check. But we do additional check
on the name length here */
if (strlen(table_name) > MAX_FULL_NAME_LEN) {
const size_t table_name_len = strlen(table_name);
if (table_name_len > MAX_FULL_NAME_LEN) {
push_warning_printf(
(THD*) trx->mysql_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
ER_TABLE_NAME,
Expand All @@ -7753,6 +7754,15 @@ create_table_def(
DBUG_RETURN(ER_TABLE_NAME);
}

if (table_name[table_name_len - 1] == '/') {
push_warning_printf(
(THD*) trx->mysql_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
ER_TABLE_NAME,
"InnoDB: Table name is empty");

DBUG_RETURN(ER_WRONG_TABLE_NAME);
}

n_cols = form->s->fields;

/* We pass 0 as the space id, and determine at a lower level the space
Expand Down
4 changes: 2 additions & 2 deletions storage/xtradb/include/univ.i
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ component, i.e. we show M.N.P as M.N */
(INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR)

#ifndef PERCONA_INNODB_VERSION
#define PERCONA_INNODB_VERSION 37.6
#define PERCONA_INNODB_VERSION 37.7
#endif

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

#define REFMAN "http://dev.mysql.com/doc/refman/" \
IB_TO_STR(MYSQL_MAJOR_VERSION) "." \
Expand Down
6 changes: 5 additions & 1 deletion storage/xtradb/log/log0recv.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 1997, 2010, Innobase Oy. All Rights Reserved.
Copyright (c) 1997, 2015, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down Expand Up @@ -766,6 +766,10 @@ recv_find_max_checkpoint(

fprintf(stderr,
"InnoDB: No valid checkpoint found.\n"
"InnoDB: If you are attempting downgrade"
" from MySQL 5.7.9 or later,\n"
"InnoDB: please refer to " REFMAN
"upgrading-downgrading.html\n"
"InnoDB: If this error appears when you are"
" creating an InnoDB database,\n"
"InnoDB: the problem may be that during"
Expand Down

0 comments on commit afce541

Please sign in to comment.