From 9958f81c081211a9e3e10346768f9d23370faa87 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 14 Sep 2017 08:51:45 +0200 Subject: [PATCH] fix #121 --- DataStorage/Database/GrammarAbstract.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DataStorage/Database/GrammarAbstract.php b/DataStorage/Database/GrammarAbstract.php index 99e0c5e47..1039e97ab 100644 --- a/DataStorage/Database/GrammarAbstract.php +++ b/DataStorage/Database/GrammarAbstract.php @@ -172,6 +172,10 @@ abstract class GrammarAbstract foreach ($elements as $key => $element) { if (is_string($element) && $element !== '*') { + if(strpos($element, '.')) { + $prefix = ''; + } + $expression .= $this->compileSystem($element, $prefix) . ', '; } elseif (is_string($element) && $element === '*') { $expression .= '*, ';