From d37c179661b1208e0ec0e3d81a6e8aa03056e204 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 15 Aug 2023 20:03:33 +0200 Subject: [PATCH] fix pgsql support --- src/Utils.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/Utils.php b/src/Utils.php index ebebf95..40c5242 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -70,17 +70,20 @@ class Utils } $sql = new SelectStatement(); - $sql->columns([ - 'option_id', - 'option_creadt', - 'option_upddt', - 'option_type', - 'option_format', - 'option_lang', - 'option_title', - 'option_content', - 'option_content_xhtml', - ]); + + if (!$count_only) { + $sql->columns([ + 'option_id', + 'option_creadt', + 'option_upddt', + 'option_type', + 'option_format', + 'option_lang', + 'option_title', + 'option_content', + 'option_content_xhtml', + ]); + } $sql->join( (new JoinStatement())