From 0c4a28935dffb214eab67abd866ceb330a879ab1 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 8 Oct 2015 23:04:50 +0200 Subject: [PATCH] Fluent: removed keyword AS from SQL [Closes #172] --- src/Dibi/Fluent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dibi/Fluent.php b/src/Dibi/Fluent.php index 0818de2a..c0cb970b 100644 --- a/src/Dibi/Fluent.php +++ b/src/Dibi/Fluent.php @@ -403,7 +403,7 @@ class Fluent implements IDataSource public function count() { return (int) $this->query([ - 'SELECT COUNT(*) FROM (%ex', $this->_export(), ') AS [data]', + 'SELECT COUNT(*) FROM (%ex', $this->_export(), ') [data]', ])->fetchSingle(); }