Browse Source

make db\Command::getPdoType() protected

fixes #964
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
ee89134ffe
  1. 2
      framework/yii/db/Command.php

2
framework/yii/db/Command.php

@ -251,7 +251,7 @@ class Command extends \yii\base\Component
* @return integer the PDO type * @return integer the PDO type
* @see http://www.php.net/manual/en/pdo.constants.php * @see http://www.php.net/manual/en/pdo.constants.php
*/ */
private function getPdoType($data) protected function getPdoType($data)
{ {
static $typeMap = array( // php type => PDO type static $typeMap = array( // php type => PDO type
'boolean' => \PDO::PARAM_BOOL, 'boolean' => \PDO::PARAM_BOOL,

Loading…
Cancel
Save