unknown
f90f1e306f
Bug#19371 VARBINARY() have trailing zeros after upgrade from 4.1
...
- Detect if a table has field of type MYSQL_TYPE_VAR_STRING while running
"CHECK TABLE t FOR UPGRADE" and indicate it need to be fixed
with "REPAIR TABLE t".
- When running a "REPAIR TABLE t" or "ALTER TABLE t FORCE" on the above
table, install a special copy function to trim off the trailing spaces
which we safely can say that the pre 5.0 mysqld didn't put there.
mysql-test/r/varbinary.result:
Add test to see that a table with varbinary from 4.1 can be REPAIRED
mysql-test/t/varbinary.test:
Add test to see that a table with varbinary from 4.1 can be REPAIRED
sql/field_conv.cc:
Add new field copy function 'do_field_varbinary_pre50' used for copying
between MYSQL_TYPE_VAR_STRING and MYSQL_TYPE_VARCHAR. It will remove trailing
spaces from the field as MySQL <= 4.1 never stores the trailing spaces for
a MYSQL_TYPE_VAR_STRING.
Install this new copy function in ALTER TABLEs list of functions to use for
copying data during and alter if from field is a <= 4.1 varbinary and to
field is 5.0 varbinary.
sql/handler.cc:
If the table has a pre 5.0 varbinary, table not to be altered so the field
type is upgraded to 5.0 version and trailing space can be trimmed.
mysql-test/std_data/bug19371.MYD:
New BitKeeper file ``mysql-test/std_data/bug19371.MYD''
mysql-test/std_data/bug19371.MYI:
New BitKeeper file ``mysql-test/std_data/bug19371.MYI''
mysql-test/std_data/bug19371.frm:
New BitKeeper file ``mysql-test/std_data/bug19371.frm''
2006-11-09 12:00:27 +01:00
..
2006-09-28 14:32:30 -04:00
2006-08-02 17:15:50 +05:00
2006-07-13 20:48:26 -07:00
2006-09-13 15:18:14 +04:00
2006-07-12 13:22:38 -07:00
2006-10-03 16:14:23 +02:00
2006-09-29 16:29:39 +05:00
2006-08-15 10:13:17 +03:00
2006-10-03 15:33:44 +02:00
2006-09-08 13:10:14 +03:00
2006-10-13 08:48:47 +02:00
2006-07-25 17:27:53 +05:00
2006-09-29 16:24:11 +05:00
2006-09-01 08:53:56 +02:00
2006-08-11 13:19:44 +05:00
2006-09-20 09:47:36 -07:00
2006-10-03 14:24:43 +02:00
2006-07-23 13:43:44 +05:00
2006-09-20 11:05:11 +02:00
2006-09-04 18:45:48 +03:00
2006-07-19 22:33:19 +04:00
2006-08-23 18:22:53 +03:00
2006-10-04 13:09:37 +02:00
2006-09-27 14:42:56 -04:00
2006-08-14 21:27:36 -07:00
2006-10-04 13:09:37 +02:00
2006-10-04 13:09:37 +02:00
2006-10-04 13:09:37 +02:00
2006-07-18 16:04:18 -07:00
2006-07-18 16:04:18 -07:00
2006-10-13 19:09:22 +05:00
2006-10-02 12:37:01 +02:00
2006-09-20 08:08:57 -07:00
2006-09-20 12:02:58 +03:00
2006-09-13 15:18:14 +04:00
2006-10-03 16:14:23 +02:00
2006-10-11 14:16:30 +04:00
2006-09-09 09:43:09 -07:00
2006-09-13 15:18:14 +04:00
2006-10-12 11:28:44 +04:00
2006-07-18 16:04:18 -07:00
2006-08-04 19:19:26 +02:00
2006-10-04 13:09:37 +02:00
2006-08-30 01:48:15 +04:00
2006-09-27 12:53:53 +03:00
2006-07-21 11:59:46 +03:00
2006-10-04 13:09:37 +02:00
2006-07-24 18:05:00 +02:00
2006-09-01 05:00:32 +02:00
2006-09-07 11:06:37 -07:00
2006-09-01 18:20:33 +04:00
2006-08-30 00:45:33 +04:00
2006-08-29 15:46:40 +04:00
2006-08-29 15:46:40 +04:00
2006-10-05 00:00:34 +02:00
2006-09-12 18:25:35 +05:00
2006-08-08 12:50:05 +05:00
2006-09-06 08:21:43 -07:00
2006-10-03 15:48:41 +02:00
2006-10-14 19:55:06 +02:00
2006-10-04 13:09:37 +02:00
2006-07-22 02:08:00 +04:00
2006-09-12 17:50:24 +03:00
2006-09-15 14:14:38 +02:00
2006-08-02 17:15:50 +05:00
2006-09-01 04:23:04 -07:00
2006-08-02 17:15:50 +05:00
2006-10-04 13:09:37 +02:00
2006-09-01 14:29:27 +02:00
2006-09-05 16:52:05 +02:00
2006-09-05 16:52:05 +02:00
2006-07-20 13:41:12 +05:00
2006-10-04 13:09:37 +02:00
2006-09-29 19:00:52 +05:00
2006-10-06 11:01:39 +05:00
2006-10-03 16:14:23 +02:00
2006-10-04 13:09:37 +02:00
2006-09-23 05:58:48 +02:00
2006-10-03 15:48:41 +02:00
2006-10-12 17:37:59 +02:00
2006-07-24 13:31:20 -07:00
2006-07-14 05:56:30 -07:00
2006-09-21 00:59:48 +02:00
2006-07-21 20:29:25 -07:00
2006-10-05 12:42:39 +02:00
2006-07-31 13:11:21 +02:00
2006-08-17 18:50:53 +04:00
2006-08-15 13:37:39 +02:00
2006-10-06 14:47:58 +05:00
2006-08-02 17:15:50 +05:00
2006-08-02 17:15:50 +05:00
2006-09-06 08:21:43 -07:00
2006-08-22 14:29:48 +02:00
2006-08-15 15:48:49 +03:00
2006-08-01 11:29:10 +02:00
2006-08-02 16:48:17 +04:00
2006-10-03 15:33:44 +02:00
2006-10-03 15:33:44 +02:00
2006-10-03 15:33:44 +02:00
2006-10-03 15:33:44 +02:00
2006-10-03 15:33:44 +02:00
2006-10-03 15:33:44 +02:00
2006-10-04 11:19:23 -04:00
2006-10-16 20:15:14 -06:00
2006-10-04 13:09:37 +02:00
2006-10-06 13:16:57 +02:00
2006-09-06 08:21:43 -07:00
2006-10-03 15:33:44 +02:00
2006-09-20 01:40:59 +05:00
2006-07-20 13:41:12 +05:00
2006-09-01 04:23:04 -07:00
2006-10-03 16:14:23 +02:00
2006-10-04 22:52:44 +02:00
2006-10-03 16:14:23 +02:00
2006-10-03 13:38:16 +04:00
2006-10-05 18:29:59 +02:00
2006-10-05 18:29:59 +02:00
2006-10-05 18:29:59 +02:00
2006-10-03 16:14:23 +02:00
2006-09-21 13:38:01 +02:00
2006-09-05 16:52:05 +02:00
2006-07-20 13:41:12 +05:00
2006-07-28 02:49:18 +04:00
2006-07-28 02:49:18 +04:00
2006-09-21 00:59:48 +02:00
2006-09-29 16:40:18 +05:00
2006-10-18 22:47:30 +02:00
2006-10-04 13:09:37 +02:00
2006-08-25 15:51:29 +02:00
2006-07-13 17:12:31 +04:00
2006-10-04 13:09:37 +02:00
2006-07-20 13:41:12 +05:00
2006-09-29 10:55:03 +04:00
2006-09-25 16:44:15 +02:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-10-03 14:24:43 +02:00
2006-07-26 19:23:44 +03:00
2006-10-06 13:18:52 +02:00
2006-10-03 16:14:23 +02:00
2006-09-29 12:36:12 +04:00
2006-09-21 11:35:38 +04:00
2006-09-28 17:00:29 +05:00
2006-10-04 13:09:37 +02:00
2006-09-15 14:14:38 +02:00
2006-08-21 00:23:57 +04:00
2006-09-22 19:40:07 +04:00
2006-08-08 14:40:07 +05:00
2006-08-10 14:50:54 +05:00
2006-08-08 13:34:27 +05:00
2006-08-30 00:38:58 +04:00
2006-08-02 21:54:10 +04:00
2006-10-12 17:10:34 -06:00
2006-10-04 10:49:39 -04:00
2006-11-09 12:00:27 +01:00
2006-08-15 18:41:21 +02:00
2006-09-06 08:21:43 -07:00
2006-10-17 11:06:11 -04:00
2006-10-03 14:24:43 +02:00