MediaWiki
REL1_41
MWMySQLPlatform.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\Rdbms
;
4
5
use Doctrine\DBAL\Platforms\MySQLPlatform;
6
7
class
MWMySQLPlatform
extends
MySQLPlatform
{
8
12
public
function
getFloatDeclarationSQL
( array $column ) {
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\MWMySQLPlatform
Definition
MWMySQLPlatform.php:7
Wikimedia\Rdbms\MWMySQLPlatform\getFloatDeclarationSQL
getFloatDeclarationSQL(array $column)
Definition
MWMySQLPlatform.php:12
Wikimedia\Rdbms\Platform\MySQLPlatform
Definition
MySQLPlatform.php:29
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
dbal
MWMySQLPlatform.php
Generated on Wed Nov 27 2024 07:23:52 for MediaWiki by
1.10.0