mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 13:17:58 +02:00
Fluent: removed keyword AS from SQL [Closes #172]
This commit is contained in:
@@ -403,7 +403,7 @@ class Fluent implements IDataSource
|
|||||||
public function count()
|
public function count()
|
||||||
{
|
{
|
||||||
return (int) $this->query([
|
return (int) $this->query([
|
||||||
'SELECT COUNT(*) FROM (%ex', $this->_export(), ') AS [data]',
|
'SELECT COUNT(*) FROM (%ex', $this->_export(), ') [data]',
|
||||||
])->fetchSingle();
|
])->fetchSingle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user