Commit 982bd00d authored by unknown's avatar unknown
Browse files

ha_innodb.cc:

  The natural InnoDB type for NEWDECIMAL is FIXBINARY, not BINARY, since there probably is no benefit from stripping trailing bytes 0x20; note that tables created with 5.0.6 and containing DECIMAL do not need to be rebuilt, as BINARY works as well; note that because of Jani's fix to bug 10465, tables created with 5.0.? - 5.0.5 DO NEED TO BE REBUILT if they contain DECIMAL


sql/ha_innodb.cc:
  The natural InnoDB type for NEWDECIMAL is FIXBINARY, not BINARY, since there probably is no benefit from stripping trailing bytes 0x20; note that tables created with 5.0.6 and containing DECIMAL do not need to be rebuilt, as BINARY works as well; note that because of Jani's fix to bug 10465, tables created with 5.0.? - 5.0.5 DO NEED TO BE REBUILT if they contain DECIMAL
parent 6df49889
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2606,7 +2606,7 @@ get_innobase_type_from_mysql_type(
						return(DATA_MYSQL);
					}
                case FIELD_TYPE_NEWDECIMAL:
                                        return(DATA_BINARY);
                                        return(DATA_FIXBINARY);
		case FIELD_TYPE_LONG:
		case FIELD_TYPE_LONGLONG:
		case FIELD_TYPE_TINY: