summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-06-01 15:01:06 +0200
committerMichal Čihař <michal@cihar.com>2017-06-01 15:01:06 +0200
commit4af06d24b041e499fb0e75ab3a98caf9a91700ef (patch)
tree452f3b5da98de5108a90757a699993488566b1e0 /src
parentf18666a810fd84bf5a00145e6b39453a1987e835 (diff)
downloadsql-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.php15
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);
}
}