Browse Source

Adjusted type map in MSSQL Querybuilder

MSSQL seems to support limits for decimal type, so we add a default
limit.
tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
9b6df54c7d
  1. 2
      framework/yii/db/mssql/QueryBuilder.php

2
framework/yii/db/mssql/QueryBuilder.php

@ -28,7 +28,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
Schema::TYPE_INTEGER => 'int(11)',
Schema::TYPE_BIGINT => 'bigint(20)',
Schema::TYPE_FLOAT => 'float',
Schema::TYPE_DECIMAL => 'decimal',
Schema::TYPE_DECIMAL => 'decimal(10,0)',
Schema::TYPE_DATETIME => 'datetime',
Schema::TYPE_TIMESTAMP => 'timestamp',
Schema::TYPE_TIME => 'time',

Loading…
Cancel
Save