maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #02518
[Branch ~maria-captains/maria/5.1] Rev 2830: Fix for Bug #534626 MyISAM table created in MariaDB not readable by MySQL
------------------------------------------------------------
revno: 2830
committer: Michael Widenius <monty@xxxxxxxxxxxx>
branch nick: maria-5.1
timestamp: Wed 2010-03-10 21:00:34 +0200
message:
Fix for Bug #534626 MyISAM table created in MariaDB not readable by MySQL
modified:
storage/myisam/mi_create.c
--
lp:maria
https://code.launchpad.net/~maria-captains/maria/5.1
Your team Maria developers is subscribed to branch lp:maria.
To unsubscribe from this branch go to https://code.launchpad.net/~maria-captains/maria/5.1/+edit-subscription.
=== modified file 'storage/myisam/mi_create.c'
--- storage/myisam/mi_create.c 2010-01-14 16:51:00 +0000
+++ storage/myisam/mi_create.c 2010-03-10 19:00:34 +0000
@@ -175,6 +175,13 @@
}
}
+ /*
+ Don't set HA_OPTION_NULL_FIELDS if no checksums, as this flag makes
+ that file incompatible with MySQL. This is ok, as this flag is only
+ used if one specifics table level checksums.
+ */
+ if (!(options & HA_OPTION_CHECKSUM))
+ options&= ~HA_OPTION_NULL_FIELDS;
if (packed || (flags & HA_PACK_RECORD))
options|=HA_OPTION_PACK_RECORD; /* Must use packed records */
/* We can't use checksum with static length rows */