Commit ee445de9 authored by tim@localhost.polyesthetic.msg's avatar tim@localhost.polyesthetic.msg
Browse files

Server core dumped if ALTER TABLE SET DEFAULT was called on a blob

field.
parent 807460bb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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();
      }