Fix binary string type

This commit is contained in:
Nicolas Le Goff
2014-03-16 06:28:51 +01:00
parent 0ae6acff7d
commit 9e660d8b3f

View File

@@ -30,6 +30,14 @@ class BinaryString extends Type
return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration)." ". $platform->getCollationFieldDeclaration('utf8_bin');
}
throw new RuntimeException(sprintf('Type %s is not supported.', self::BINARY_STRING));
return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration);
}
/**
* {@inheritdoc}
*/
public function getDefaultLength(AbstractPlatform $platform)
{
return $platform->getVarcharDefaultLength();
}
}