diff --git a/src/PHPSQLParser/processors/ColumnDefinitionProcessor.php b/src/PHPSQLParser/processors/ColumnDefinitionProcessor.php index 53b619a4..3bea7e04 100644 --- a/src/PHPSQLParser/processors/ColumnDefinitionProcessor.php +++ b/src/PHPSQLParser/processors/ColumnDefinitionProcessor.php @@ -356,6 +356,12 @@ public function process($tokens) { // TODO: check this, we need the last comma continue 2; + case 'CHECK': + $expr[] = array('expr_type' => ExpressionType::CHECK, 'base_expr' => $trim, 'length' => false); + $currCategory = 'MULTIPLE_PARAM_PARENTHESIS'; + $prevCategory = $upper; + continue 2; + default: switch ($currCategory) {