Page MenuHomeWickedGov Phorge

MWMySQLPlatform.php
No OneTemporary

Size
410 B
Referenced Files
None
Subscribers
None

MWMySQLPlatform.php

<?php
namespace Wikimedia\Rdbms;
use Doctrine\DBAL\Platforms\MySQLPlatform;
class MWMySQLPlatform extends MySQLPlatform {
/**
* @inheritDoc
*/
public function getFloatDeclarationSQL( array $column ) {
$double = $column['doublePrecision'] ?? false;
$unsigned = $column['unsigned'] ?? false;
$sql = $double ? 'DOUBLE PRECISION' : 'FLOAT';
return $sql . ( $unsigned ? ' UNSIGNED' : '' );
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Aug 19, 13:58 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c6/35/3efead45570c1116fc0269d2efa3
Default Alt Text
MWMySQLPlatform.php (410 B)

Event Timeline