From adeaccf225c272d42d11a9a7cdf1285e8dd71f9e Mon Sep 17 00:00:00 2001 From: lsv Date: Fri, 16 Jan 2026 17:07:56 +0500 Subject: [PATCH] A new flag has been added for generation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавлен локальный флаг "e" отключающий квотирование для колонки. Пример: --@gen:Выгрузка как есть:@?column?,e@\n --- ctl/ctlSQLResult.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ctl/ctlSQLResult.cpp b/ctl/ctlSQLResult.cpp index ea4524e..37a9007 100644 --- a/ctl/ctlSQLResult.cpp +++ b/ctl/ctlSQLResult.cpp @@ -343,6 +343,7 @@ struct type_temp_flag { uint8_t colvalue:1; uint8_t colname:1; uint8_t indexrow:1; +uint8_t no_quote:1; }; struct ElementTempl { wxString txt; @@ -384,6 +385,7 @@ wxString ctlSQLResult::GenerateTemplate(wxString &templ,int action) { //if (c=='n') e.flags.colname=true; if (c=='a') isalign=true; + else if (c=='e') e.flags.no_quote=true; else { wxString msg=wxString::Format(_("Incorrect flag at the %s column."),col); if (action == 0) wxMessageBox(msg); @@ -481,6 +483,7 @@ wxString ctlSQLResult::GenerateTemplate(wxString &templ,int action) else if (qt == 2) /* Quote everything */ needQuote = true; + if (e.flags.no_quote) needQuote = false; if (needQuote) text.Replace(qtsimbol, qtsimbol2); if (isnull) strrow.Append("null"); else