summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BitKeeper/etc/logging_ok1
-rw-r--r--sql/sql_show.cc20
2 files changed, 5 insertions, 16 deletions
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok
index 8b880b7c9aa..9fecb756be0 100644
--- a/BitKeeper/etc/logging_ok
+++ b/BitKeeper/etc/logging_ok
@@ -59,6 +59,7 @@ gerberb@ou800.zenez.com
gluh@eagle.intranet.mysql.r18.ru
gluh@gluh.(none)
gluh@gluh.mysql.r18.ru
+gluh@mysql.com
gordon@zero.local.lan
greg@gcw.ath.cx
greg@mysql.com
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 8280d865ec0..4b9c53b9b34 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -2334,25 +2334,13 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
"NO" : "YES");
table->field[6]->store((const char*) pos,
strlen((const char*) pos), cs);
-
- switch (field->type()) {
- case FIELD_TYPE_TINY_BLOB:
- case FIELD_TYPE_MEDIUM_BLOB:
- case FIELD_TYPE_LONG_BLOB:
- case FIELD_TYPE_BLOB:
- case FIELD_TYPE_VAR_STRING:
- case FIELD_TYPE_STRING:
- if (field->has_charset())
- table->field[8]->store((longlong) field->representation_length()/
- field->charset()->mbmaxlen);
- else
- table->field[8]->store((longlong) field->representation_length());
+ if (field->has_charset())
+ {
+ table->field[8]->store((longlong) field->representation_length()/
+ field->charset()->mbmaxlen);
table->field[8]->set_notnull();
table->field[9]->store((longlong) field->representation_length());
table->field[9]->set_notnull();
- break;
- default:
- break;
}
{