Commit 72a9fec5 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

Added supportsViews() to platforms.

parent 6a02f3d3
......@@ -2377,6 +2377,16 @@ abstract class AbstractPlatform
return "";
}
/**
* Does this platform views ?
*
* @return boolean
*/
public function supportsViews()
{
return true;
}
/**
* Gets the format string, as accepted by the date() function, that describes
* the format of a stored datetime value of this platform.
......
......@@ -199,6 +199,11 @@ class DrizzlePlatform extends AbstractPlatform
return true;
}
public function supportsViews()
{
return false;
}
public function getDropIndexSQL($index, $table=null)
{
if($index instanceof Index) {
......
......@@ -420,6 +420,10 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
public function testCreateAndListViews()
{
if (!$this->_sm->getDatabasePlatform()->supportsViews()) {
$this->markTestSkipped('Views is not supported by this platform.');
}
$this->createTestTable('view_test_table');
$name = "doctrine_test_view";
......
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