BUGFIX: default enum values now have single quotes

This commit is contained in:
Geoff Munn 2009-04-29 22:49:48 +00:00
parent 8b8dc91e7c
commit 72e8d924e7

View File

@ -708,7 +708,7 @@ class MSSQLDatabase extends Database {
//Enums are a bit different. We'll be creating a varchar(255) with a constraint of all the usual enum options.
//NOTE: In this one instance, we are including the table name in the values array
return "varchar(255) not null default \"" . $values['default'] . "\" check(\"" . $values['name'] . "\" in ('" . implode('\', \'', $values['enums']) . "'))";
return "varchar(255) not null default '" . $values['default'] . "' check(\"" . $values['name'] . "\" in ('" . implode('\', \'', $values['enums']) . "'))";
}