2009-06-20 12:59:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\DBAL\Mocks;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Platforms;
|
|
|
|
|
|
|
|
class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
|
|
|
|
{
|
2010-03-05 16:35:00 +00:00
|
|
|
public function getBooleanTypeDeclarationSQL(array $columnDef) {}
|
|
|
|
public function getIntegerTypeDeclarationSQL(array $columnDef) {}
|
|
|
|
public function getBigIntTypeDeclarationSQL(array $columnDef) {}
|
|
|
|
public function getSmallIntTypeDeclarationSQL(array $columnDef) {}
|
|
|
|
public function _getCommonIntegerTypeDeclarationSQL(array $columnDef) {}
|
2009-07-11 08:48:57 +00:00
|
|
|
|
2010-03-05 16:35:00 +00:00
|
|
|
public function getVarcharTypeDeclarationSQL(array $field)
|
2009-07-11 08:48:57 +00:00
|
|
|
{
|
|
|
|
return "DUMMYVARCHAR()";
|
|
|
|
}
|
2009-10-01 12:00:14 +00:00
|
|
|
|
|
|
|
/** @override */
|
2010-03-05 16:35:00 +00:00
|
|
|
public function getClobTypeDeclarationSQL(array $field)
|
2009-10-01 12:00:14 +00:00
|
|
|
{
|
|
|
|
return 'DUMMYCLOB';
|
|
|
|
}
|
2009-07-11 08:48:57 +00:00
|
|
|
|
|
|
|
public function getVarcharDefaultLength()
|
|
|
|
{
|
|
|
|
return 255;
|
|
|
|
}
|
|
|
|
|
2009-06-20 12:59:33 +00:00
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return 'mock';
|
|
|
|
}
|
2009-07-11 08:48:57 +00:00
|
|
|
}
|