diff --git a/code/MSSQLSchemaManager.php b/code/MSSQLSchemaManager.php index 0662fbb..12f75f4 100644 --- a/code/MSSQLSchemaManager.php +++ b/code/MSSQLSchemaManager.php @@ -390,7 +390,7 @@ class MSSQLSchemaManager extends DBSchemaManager // First, we split the column specifications into parts // TODO: this returns an empty array for the following string: int(11) not null auto_increment // on second thoughts, why is an auto_increment field being passed through? - $pattern = '/^(?[\w()]+)\s?(?(?:not\s)?null)?\s?(?default\s[\w\']+)?\s?(?check\s?[\w()\'",\s]+)?$/i'; + $pattern = '/^(?[\w()]+)\s?(?(?:not\s)?null)?\s?(?default\s[\w\'\\\\]+)?\s?(?check\s?[\w()\'"\\\\,\s]+)?/i'; $matches = array(); preg_match($pattern, $colSpec, $matches);