Skip to content

Commit

Permalink
use default column in uppercase, use lower case as alternative on usa…
Browse files Browse the repository at this point in the history
…ge count()

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik committed Aug 12, 2020
1 parent 389ebf0 commit ab146a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Adapter/DbSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ protected function getSelectCount()

$countSelect = new Select;

$countSelect->columns([
self::ROW_COUNT_COLUMN_NAME => new Expression('COUNT(1)'),
strtolower(self::ROW_COUNT_COLUMN_NAME) => new Expression('COUNT(1)')
]);
$countSelect->columns([self::ROW_COUNT_COLUMN_NAME => new Expression('COUNT(1)')]);
$countSelect->from(['original_select' => $select]);

return $countSelect;
Expand Down

0 comments on commit ab146a8

Please sign in to comment.