1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

DibiDataSource: removed keyword 'AS'

This commit is contained in:
David Grudl
2011-02-16 17:48:47 +01:00
parent 713918ae3c
commit b148291ca2

View File

@@ -264,7 +264,7 @@ class DibiDataSource extends DibiObject implements IDataSource
*/
public function toFluent()
{
return $this->connection->select('*')->from('(%SQL) AS t', $this->__toString());
return $this->connection->select('*')->from('(%SQL) t', $this->__toString());
}
@@ -310,7 +310,7 @@ class DibiDataSource extends DibiObject implements IDataSource
if ($this->count === NULL) {
$this->count = $this->conds || $this->offset || $this->limit
? (int) $this->connection->nativeQuery(
'SELECT COUNT(*) FROM (' . $this->__toString() . ') AS t'
'SELECT COUNT(*) FROM (' . $this->__toString() . ') t'
)->fetchSingle()
: $this->getTotalCount();
}