diff options
author | tim@localhost.polyesthetic.msg <> | 2000-08-16 18:20:22 -0400 |
---|---|---|
committer | tim@localhost.polyesthetic.msg <> | 2000-08-16 18:20:22 -0400 |
commit | ee445de997957988b764f461ed455d3931fd5ef5 (patch) | |
tree | 8f47b62c1ceea4a60a7bafa507df6530c6d536f1 | |
parent | 807460bbceceec25bf97352bc5e232c3e766d70f (diff) | |
download | mariadb-git-ee445de997957988b764f461ed455d3931fd5ef5.tar.gz |
Server core dumped if ALTER TABLE SET DEFAULT was called on a blob
field.
-rw-r--r-- | sql/sql_table.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 6e39a1a962b..32ef2568a3a 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -1144,6 +1144,11 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name, } if (alter) { + if (def->sql_type == FIELD_TYPE_BLOB) + { + my_error(ER_BLOB_CANT_HAVE_DEFAULT,MYF(0),def->change); + DBUG_RETURN(-1); + } def->def=alter->def; // Use new default alter_it.remove(); } |