Commit acb36036 authored by Steve Müller's avatar Steve Müller

add more SQL Anywhere 12 platform tests

parent 7d408fc3
...@@ -109,5 +109,35 @@ class SQLAnywhere12PlatformTest extends SQLAnywhere11PlatformTest ...@@ -109,5 +109,35 @@ class SQLAnywhere12PlatformTest extends SQLAnywhere11PlatformTest
'footable' 'footable'
) )
); );
// WITH NULLS NOT DISTINCT clause not available on primary indexes.
$this->assertEquals(
'ALTER TABLE footable ADD PRIMARY KEY (a, b)',
$this->_platform->getCreateIndexSQL(
new Index(
'fooindex',
array('a', 'b'),
false,
true,
array('with_nulls_not_distinct')
),
'footable'
)
);
// WITH NULLS NOT DISTINCT clause not available on non-unique indexes.
$this->assertEquals(
'CREATE INDEX fooindex ON footable (a, b)',
$this->_platform->getCreateIndexSQL(
new Index(
'fooindex',
array('a', 'b'),
false,
false,
array('with_nulls_not_distinct')
),
'footable'
)
);
} }
} }
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