1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 13:47:33 +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 d708ac2aeb
commit e3748420f5

View File

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