From b2db84d54f5c8a660552b48e930740b2174149e9 Mon Sep 17 00:00:00 2001 From: lsv Date: Mon, 31 May 2021 10:08:06 +0500 Subject: [PATCH] bug fix #15. skip last token MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit При отображении токенов конфигурации, последний токен не отображался. --- schema/pgTextSearchConfiguration.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schema/pgTextSearchConfiguration.cpp b/schema/pgTextSearchConfiguration.cpp index bbe3109..4c9d731 100644 --- a/schema/pgTextSearchConfiguration.cpp +++ b/schema/pgTextSearchConfiguration.cpp @@ -240,6 +240,10 @@ pgObject *pgTextSearchConfigurationFactory::CreateObjects(pgCollection *collecti maps->MoveNext(); } + if (tokenToAdd.Length() > 0 ) + { + config->GetTokens().Add(tokenToAdd); + } delete maps; }