Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
catfan committed Dec 1, 2017
2 parents 0498651 + aa451b2 commit d65fad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Medoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* Medoo database framework
* https://medoo.in
* Version 1.5.1
* Version 1.5.2
*
* Copyright 2017, Angel Lai
* Released under the MIT license
Expand Down Expand Up @@ -1032,7 +1032,7 @@ protected function columnMap($columns, &$stack)
{
preg_match('/([a-zA-Z0-9_]+\.)?(?<column>[a-zA-Z0-9_]+)(?:\s*\((?<alias>[a-zA-Z0-9_]+)\))?(?:\s*\[(?<type>(?:String|Bool|Int|Number|Object|JSON))\])?/i', $value, $key_match);

$column_key = isset($key_match[ 'alias' ]) ?
$column_key = !empty($key_match[ 'alias' ]) ?
$key_match[ 'alias' ] :
$key_match[ 'column' ];

Expand Down

0 comments on commit d65fad6

Please sign in to comment.