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

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

This commit is contained in:
David Grudl
2015-10-08 23:04:50 +02:00
parent 2e09a559f2
commit 0c4a28935d

View File

@@ -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();
} }