From e3748420f5be92d1cb34ccf351c43e0007cbb731 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 063f9ace..26437958 100644 --- a/dibi/libs/DibiFluent.php +++ b/dibi/libs/DibiFluent.php @@ -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(); }