Skip to content

Commit

Permalink
Fixed issue #9682: Unable to update with pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jun 15, 2015
1 parent f8d8e35 commit db0280d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/db/SmartColumnTypeTrait.php
Expand Up @@ -7,7 +7,7 @@ trait SmartColumnTypeTrait {
*/
public function getColumnType($type)
{
if (preg_match('/([[:alpha:]]+)\s*(\(.+?\))(.*)/', $type, $matches)) {
if (preg_match('/^([[:alpha:]]+)\s*(\(.+?\))(.*)$/', $type, $matches)) {
$baseType = parent::getColumnType($matches[1] . ' ' . $matches[3]);
$param = $matches[2];
$result = preg_replace('/\(.+?\)/', $param, $baseType, 1);
Expand Down

0 comments on commit db0280d

Please sign in to comment.