mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
DibiDataSource: removed keyword 'AS'
This commit is contained in:
@@ -264,7 +264,7 @@ class DibiDataSource extends DibiObject implements IDataSource
|
|||||||
*/
|
*/
|
||||||
public function toFluent()
|
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) {
|
if ($this->count === NULL) {
|
||||||
$this->count = $this->conds || $this->offset || $this->limit
|
$this->count = $this->conds || $this->offset || $this->limit
|
||||||
? (int) $this->connection->nativeQuery(
|
? (int) $this->connection->nativeQuery(
|
||||||
'SELECT COUNT(*) FROM (' . $this->__toString() . ') AS t'
|
'SELECT COUNT(*) FROM (' . $this->__toString() . ') t'
|
||||||
)->fetchSingle()
|
)->fetchSingle()
|
||||||
: $this->getTotalCount();
|
: $this->getTotalCount();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user