MediaWiki
REL1_37
MWMySQLPlatform.php
Go to the documentation of this file.
1
<?php
2
7
namespace
Wikimedia\Rdbms
;
8
9
use Doctrine\DBAL\Platforms\MySQLPlatform;
10
11
class
MWMySQLPlatform
extends
MySQLPlatform {
12
16
public
function
getFloatDeclarationSQL
( array $column ) {
17
$double = $column[
'doublePrecision'
] ??
false
;
18
$unsigned = $column[
'unsigned'
] ??
false
;
19
20
$sql = $double ?
'DOUBLE PRECISION'
:
'FLOAT'
;
21
22
return
$sql . ( $unsigned ?
' UNSIGNED'
:
''
);
23
}
24
}
Wikimedia\Rdbms\MWMySQLPlatform
Definition
MWMySQLPlatform.php:11
Wikimedia\Rdbms\MWMySQLPlatform\getFloatDeclarationSQL
getFloatDeclarationSQL(array $column)
Definition
MWMySQLPlatform.php:16
Wikimedia\Rdbms
Definition
ChronologyProtector.php:24
includes
libs
rdbms
dbal
MWMySQLPlatform.php
Generated on Fri Apr 5 2024 23:40:30 for MediaWiki by
1.9.8