silverstripe/sapphire — pull request #506 by halkyon (2012-06-05 22:34:40+00:00)
Title: BUGFIX Ensure that enum values with a single quote are escaped correctly for MySQL

In the example, if you have an enum of 'Enum("Something,Don\'t know")' in your `DataObject::$db` array, then dev/build will *always* say this field has changed, because `MySQLDatabase::showFields()` returns the escaped string specification of the field with '' instead of \'.

This converts the field spec so that '' is escaped to \' correctly so the change detection in `Database` is correct.