1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 13:17:58 +02:00

DibiFluent: removed keyword AS from SQL [Closes #172]

This commit is contained in:
David Grudl
2015-10-08 23:04:50 +02:00
parent ac0ab9041b
commit 443661f0e9

View File

@@ -402,7 +402,7 @@ class DibiFluent extends DibiObject implements IDataSource
public function count() public function count()
{ {
return (int) $this->query(array( return (int) $this->query(array(
'SELECT COUNT(*) FROM (%ex', $this->_export(), ') AS [data]', 'SELECT COUNT(*) FROM (%ex', $this->_export(), ') [data]',
))->fetchSingle(); ))->fetchSingle();
} }