Added more information to the deprecation notice

parent c0f6d4b8
......@@ -332,7 +332,7 @@ abstract class AbstractPlatform
if ($field['length'] > $maxLength) {
if ($maxLength > 0) {
@trigger_error(sprintf(
'Binary field length %d is greater than supported by the platform (%d)',
'Binary field length %d is greater than supported by the platform (%d). Reduce the field length or use a BLOB field instead.',
$field['length'],
$maxLength
), E_USER_DEPRECATED);
......
......@@ -527,9 +527,9 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase
/**
* @group legacy
* @expectedDeprecation Binary field length 65536 is greater than supported by the platform (65535)
* @expectedDeprecation Binary field length 16777215 is greater than supported by the platform (65535)
* @expectedDeprecation Binary field length 16777216 is greater than supported by the platform (65535)
* @expectedDeprecation Binary field length 65536 is greater than supported by the platform (65535). Reduce the field length or use a BLOB field instead.
* @expectedDeprecation Binary field length 16777215 is greater than supported by the platform (65535). Reduce the field length or use a BLOB field instead.
* @expectedDeprecation Binary field length 16777216 is greater than supported by the platform (65535). Reduce the field length or use a BLOB field instead.
*/
public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{
......
......@@ -989,7 +989,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
/**
* @group legacy
* @expectedDeprecation Binary field length 8001 is greater than supported by the platform (8000)
* @expectedDeprecation Binary field length 8001 is greater than supported by the platform (8000). Reduce the field length or use a BLOB field instead.
*/
public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{
......
......@@ -429,7 +429,7 @@ class DB2PlatformTest extends AbstractPlatformTestCase
/**
* @group legacy
* @expectedDeprecation Binary field length 32705 is greater than supported by the platform (32704)
* @expectedDeprecation Binary field length 32705 is greater than supported by the platform (32704). Reduce the field length or use a BLOB field instead.
*/
public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{
......
......@@ -454,7 +454,7 @@ class OraclePlatformTest extends AbstractPlatformTestCase
/**
* @group legacy
* @expectedDeprecation Binary field length 2001 is greater than supported by the platform (2000)
* @expectedDeprecation Binary field length 2001 is greater than supported by the platform (2000). Reduce the field length or use a BLOB field instead.
*/
public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{
......
......@@ -799,7 +799,7 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
/**
* @group legacy
* @expectedDeprecation Binary field length 32768 is greater than supported by the platform (32767)
* @expectedDeprecation Binary field length 32768 is greater than supported by the platform (32767). Reduce the field length or use a BLOB field instead.
*/
public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{
......
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