Unverified Commit 3979efee authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3192 from morozov/issues/3187

Added more information to the deprecation notice
parents c0f6d4b8 104ae16b
...@@ -332,7 +332,7 @@ abstract class AbstractPlatform ...@@ -332,7 +332,7 @@ abstract class AbstractPlatform
if ($field['length'] > $maxLength) { if ($field['length'] > $maxLength) {
if ($maxLength > 0) { if ($maxLength > 0) {
@trigger_error(sprintf( @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'], $field['length'],
$maxLength $maxLength
), E_USER_DEPRECATED); ), E_USER_DEPRECATED);
......
...@@ -527,9 +527,9 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase ...@@ -527,9 +527,9 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase
/** /**
* @group legacy * @group legacy
* @expectedDeprecation Binary field length 65536 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) * @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) * @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() public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{ {
......
...@@ -989,7 +989,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas ...@@ -989,7 +989,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
/** /**
* @group legacy * @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() public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{ {
......
...@@ -429,7 +429,7 @@ class DB2PlatformTest extends AbstractPlatformTestCase ...@@ -429,7 +429,7 @@ class DB2PlatformTest extends AbstractPlatformTestCase
/** /**
* @group legacy * @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() public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{ {
......
...@@ -454,7 +454,7 @@ class OraclePlatformTest extends AbstractPlatformTestCase ...@@ -454,7 +454,7 @@ class OraclePlatformTest extends AbstractPlatformTestCase
/** /**
* @group legacy * @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() public function testReturnsBinaryTypeLongerThanMaxDeclarationSQL()
{ {
......
...@@ -799,7 +799,7 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase ...@@ -799,7 +799,7 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
/** /**
* @group legacy * @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() 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