Browse files

Corrected the SELECT specification supporting the DISTINCT argument

  • Loading branch information...
1 parent da07da2 commit 44165fbf646846fdc6580be240842565c55ad71a @twmobius committed Jan 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Db/Sql/Select.php
View
2 library/Zend/Db/Sql/Select.php
@@ -56,7 +56,7 @@ class Select extends AbstractSql implements SqlInterface, PreparableSqlInterface
protected $specifications = array(
self::SELECT => array(
'SELECT %3$s %1$s FROM %2$s' => array(
- array(1 => '%1$s', 2 => '%2$s', 'combinedby' => ', '),
+ array(1 => '%1$s', 2 => '%1$s AS %2$s', 'combinedby' => ', '),
null,
array(1 => '%1$s')
)

0 comments on commit 44165fb

Please sign in to comment.