Commit 831810cd authored by Steve Müller's avatar Steve Müller

fix exception message and CS

parent 556b624c
...@@ -39,11 +39,11 @@ class SQLAnywhere16Platform extends SQLAnywhere12Platform ...@@ -39,11 +39,11 @@ class SQLAnywhere16Platform extends SQLAnywhere12Platform
{ {
if ($index->hasFlag('with_nulls_distinct') && $index->hasFlag('with_nulls_not_distinct')) { if ($index->hasFlag('with_nulls_distinct') && $index->hasFlag('with_nulls_not_distinct')) {
throw new UnexpectedValueException( throw new UnexpectedValueException(
'An Index can have either have a "with_nulls_distinct" or "with_nulls_not_distinct" flag but not both.' 'An Index can either have a "with_nulls_distinct" or "with_nulls_not_distinct" flag but not both.'
); );
} }
if (!$index->isPrimary() && $index->isUnique() && $index->hasFlag('with_nulls_distinct')) { if ( ! $index->isPrimary() && $index->isUnique() && $index->hasFlag('with_nulls_distinct')) {
return ' WITH NULLS DISTINCT' . parent::getAdvancedIndexOptionsSQL($index); return ' WITH NULLS DISTINCT' . parent::getAdvancedIndexOptionsSQL($index);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment