From 443661f0e985dc097255e2a7345df57fe13a677d Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 8 Oct 2015 23:04:50 +0200 Subject: [PATCH] DibiFluent: removed keyword AS from SQL [Closes #172] --- dibi/libs/DibiFluent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiFluent.php b/dibi/libs/DibiFluent.php index e55f5c38..306dadf0 100644 --- a/dibi/libs/DibiFluent.php +++ b/dibi/libs/DibiFluent.php @@ -402,7 +402,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(); }