MediaWiki
master
MWMySQLPlatform.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\Rdbms\DBAL
;
4
5
use Doctrine\DBAL\Platforms\MySQLPlatform;
6
7
class
MWMySQLPlatform
extends
MySQLPlatform {
8
12
public
function
getFloatDeclarationSQL
( array $column ): string {
13
$double = $column[
'doublePrecision'
] ?? false;
14
$unsigned = $column[
'unsigned'
] ??
false
;
15
16
$sql = $double ?
'DOUBLE PRECISION'
:
'FLOAT'
;
17
18
return
$sql . ( $unsigned ?
' UNSIGNED'
:
''
);
19
}
20
}
Wikimedia\Rdbms\DBAL\MWMySQLPlatform
Definition
MWMySQLPlatform.php:7
Wikimedia\Rdbms\DBAL\MWMySQLPlatform\getFloatDeclarationSQL
getFloatDeclarationSQL(array $column)
Definition
MWMySQLPlatform.php:12
Wikimedia\Rdbms\DBAL
Definition
DoctrineAbstractSchemaTrait.php:6
includes
libs
Rdbms
DBAL
MWMySQLPlatform.php
Generated on Thu Mar 12 2026 15:27:01 for MediaWiki by
1.10.0