diff options
author | Michal Čihař <michal@cihar.com> | 2017-06-01 15:01:06 +0200 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-06-01 15:01:06 +0200 |
commit | 4af06d24b041e499fb0e75ab3a98caf9a91700ef (patch) | |
tree | 452f3b5da98de5108a90757a699993488566b1e0 /src | |
parent | f18666a810fd84bf5a00145e6b39453a1987e835 (diff) | |
download | sql-parser-4af06d24b041e499fb0e75ab3a98caf9a91700ef.zip sql-parser-4af06d24b041e499fb0e75ab3a98caf9a91700ef.tar.gz sql-parser-4af06d24b041e499fb0e75ab3a98caf9a91700ef.tar.bz2 |
Remove not used type arg from GROUP BY
It should not be there since beginning.
Issue #154
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/GroupKeyword.php | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/Components/GroupKeyword.php b/src/Components/GroupKeyword.php index 4fb667f..1c7dfdd 100644 --- a/src/Components/GroupKeyword.php +++ b/src/Components/GroupKeyword.php @@ -21,29 +21,20 @@ use PhpMyAdmin\SqlParser\TokensList; class GroupKeyword extends Component { /** - * The expression that is used for ordering. + * The expression that is used for grouping. * * @var Expression */ public $expr; - - /** - * The order type. - * - * @var string - */ - public $type; /** * Constructor. * * @param Expression $expr the expression that we are sorting by - * @param string $type the sorting type */ - public function __construct($expr = null, $type = '') + public function __construct($expr = null) { $this->expr = $expr; - $this->type = $type; } /** @@ -135,7 +126,7 @@ class GroupKeyword extends Component return implode(', ', $component); } - return trim($component->expr . ' ' . $component->type); + return trim($component->expr); } } |