mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint
This commit is contained in:
@ -8792,6 +8792,8 @@ Field *create_tmp_field_from_field(THD *thd, Field *org_field,
|
||||
if (org_field->type() == MYSQL_TYPE_VAR_STRING ||
|
||||
org_field->type() == MYSQL_TYPE_VARCHAR)
|
||||
table->s->db_create_options|= HA_OPTION_PACK_RECORD;
|
||||
else if (org_field->type() == FIELD_TYPE_DOUBLE)
|
||||
((Field_double *) new_field)->not_fixed= TRUE;
|
||||
}
|
||||
return new_field;
|
||||
}
|
||||
@ -8832,7 +8834,7 @@ static Field *create_tmp_field_from_item(THD *thd, Item *item, TABLE *table,
|
||||
switch (item->result_type()) {
|
||||
case REAL_RESULT:
|
||||
new_field= new Field_double(item->max_length, maybe_null,
|
||||
item->name, item->decimals);
|
||||
item->name, item->decimals, TRUE);
|
||||
break;
|
||||
case INT_RESULT:
|
||||
/* Select an integer type with the minimal fit precision */
|
||||
|
Reference in New Issue
Block a user