Commit 55cc8813 by Qiang Xue

Fixes issue #171

parent 563243a4
...@@ -472,8 +472,8 @@ class QueryBuilder extends \yii\base\Object ...@@ -472,8 +472,8 @@ class QueryBuilder extends \yii\base\Object
if (isset($this->typeMap[$type])) { if (isset($this->typeMap[$type])) {
return $this->typeMap[$type]; return $this->typeMap[$type];
} elseif (preg_match('/^(\w+)\s+/', $type, $matches)) { } elseif (preg_match('/^(\w+)\s+/', $type, $matches)) {
if (isset($this->typeMap[$matches[0]])) { if (isset($this->typeMap[$matches[1]])) {
return preg_replace('/^\w+/', $this->typeMap[$matches[0]], $type); return preg_replace('/^\w+/', $this->typeMap[$matches[1]], $type);
} }
} }
return $type; return $type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment