File tree Expand file tree Collapse file tree 4 files changed +2
-30
lines changed Expand file tree Collapse file tree 4 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -1028,16 +1028,6 @@ public function getColumnCharsetDeclarationSQL($charset)
1028
1028
return 'CHARACTER SET ' . $ charset ;
1029
1029
}
1030
1030
1031
- /**
1032
- * {@inheritDoc}
1033
- *
1034
- * @internal The method should be only used from within the {@see AbstractPlatform} class hierarchy.
1035
- */
1036
- public function getColumnCollationDeclarationSQL ($ collation )
1037
- {
1038
- return 'COLLATE ' . $ this ->quoteSingleIdentifier ($ collation );
1039
- }
1040
-
1041
1031
/**
1042
1032
* {@inheritDoc}
1043
1033
*
Original file line number Diff line number Diff line change @@ -3321,7 +3321,7 @@ public function getColumnCharsetDeclarationSQL($charset)
3321
3321
*/
3322
3322
public function getColumnCollationDeclarationSQL ($ collation )
3323
3323
{
3324
- return $ this ->supportsColumnCollation () ? 'COLLATE ' . $ collation : '' ;
3324
+ return $ this ->supportsColumnCollation () ? 'COLLATE ' . $ this -> quoteSingleIdentifier ( $ collation) : '' ;
3325
3325
}
3326
3326
3327
3327
/**
Original file line number Diff line number Diff line change @@ -1302,16 +1302,6 @@ public function supportsColumnCollation()
1302
1302
return true ;
1303
1303
}
1304
1304
1305
- /**
1306
- * {@inheritdoc}
1307
- *
1308
- * @internal The method should be only used from within the {@see AbstractPlatform} class hierarchy.
1309
- */
1310
- public function getColumnCollationDeclarationSQL ($ collation )
1311
- {
1312
- return 'COLLATE ' . $ this ->quoteSingleIdentifier ($ collation );
1313
- }
1314
-
1315
1305
/**
1316
1306
* {@inheritdoc}
1317
1307
*/
Original file line number Diff line number Diff line change @@ -787,14 +787,6 @@ public function testSupportsColumnCollation(): void
787
787
self ::assertTrue ($ this ->platform ->supportsColumnCollation ());
788
788
}
789
789
790
- public function testColumnCollationDeclarationSQL (): void
791
- {
792
- self ::assertSame (
793
- 'COLLATE NOCASE ' ,
794
- $ this ->platform ->getColumnCollationDeclarationSQL ('NOCASE ' ),
795
- );
796
- }
797
-
798
790
public function testGetCreateTableSQLWithColumnCollation (): void
799
791
{
800
792
$ table = new Table ('foo ' );
@@ -804,7 +796,7 @@ public function testGetCreateTableSQLWithColumnCollation(): void
804
796
self ::assertSame (
805
797
[
806
798
'CREATE TABLE foo (no_collation VARCHAR(255) NOT NULL, '
807
- . 'column_collation VARCHAR(255) NOT NULL COLLATE NOCASE) ' ,
799
+ . 'column_collation VARCHAR(255) NOT NULL COLLATE " NOCASE" ) ' ,
808
800
],
809
801
$ this ->platform ->getCreateTableSQL ($ table ),
810
802
);
You can’t perform that action at this time.
0 commit comments