On my Mac, using 5.5.11 MySQL Community Server (GPL)
alter table foobaz add column (
extendedTitle varchar(3000) DEFAULT NULL,
clasindxIndent int,
spacedash1 enum (' ', '-', '1') default ' ',
plusSubs enum (' ', '+') default ' ');
works perfectly. On my Debian server using 5.1.49-3-log (Debian), it fails with
ERROR 1067 (42000): Invalid default value for 'spacedash1'
I don't understand the error, or why it works on my Mac and not on my server. Any hints or pointers greatly appreciated.
Pat
CHAR(1)
.