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