summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorGuilhem Bichot <guilhem.bichot@oracle.com>2011-05-21 10:21:08 +0200
committerGuilhem Bichot <guilhem.bichot@oracle.com>2011-05-21 10:21:08 +0200
commit12f651ac9ddfb21187c69ae7a50c72440f7025c8 (patch)
tree43fd6afdae9f8879ad4cdbb000497fee7cba02f4 /sql/table.cc
parentde91727eec494adc8d8dbee4a83fe8a6f1f93c39 (diff)
parent25221cccd2dde986c91c1ad3bdca3ee2869ed2ac (diff)
downloadmariadb-git-12f651ac9ddfb21187c69ae7a50c72440f7025c8.tar.gz
Merge from 5.1.
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 68e2566ffc1..1ac17d18d8d 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -2422,7 +2422,7 @@ void open_table_error(TABLE_SHARE *share, int error, int db_errno, int errarg)
default: /* Better wrong error than none */
case 4:
strxmov(buff, share->normalized_path.str, reg_ext, NullS);
- my_error(ER_NOT_FORM_FILE, errortype, buff, 0);
+ my_error(ER_NOT_FORM_FILE, errortype, buff);
break;
}
DBUG_VOID_RETURN;
@@ -3009,7 +3009,8 @@ Table_check_intact::check(TABLE *table, const TABLE_FIELD_DEF *table_def)
report_error(ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE,
ER(ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE),
table->alias, table_def->count, table->s->fields,
- table->s->mysql_version, MYSQL_VERSION_ID);
+ static_cast<int>(table->s->mysql_version),
+ MYSQL_VERSION_ID);
DBUG_RETURN(TRUE);
}
else if (MYSQL_VERSION_ID == table->s->mysql_version)