コード例 #1
0
ファイル: SQLServerPlatform.php プロジェクト: aleguisf/fvdev1
 /**
  * {@inheritDoc}
  */
 public function getUniqueConstraintDeclarationSQL($name, Index $index)
 {
     $constraint = parent::getUniqueConstraintDeclarationSQL($name, $index);
     $constraint = $this->_appendUniqueConstraintDefinition($constraint, $index);
     return $constraint;
 }
コード例 #2
0
 /**
  * @group DBAL-1051
  */
 public function testQuotesReservedKeywordInUniqueConstraintDeclarationSQL()
 {
     $index = new Index('select', array('foo'), true);
     $this->assertSame($this->getQuotesReservedKeywordInUniqueConstraintDeclarationSQL(), $this->_platform->getUniqueConstraintDeclarationSQL('select', $index));
 }