From b10fae4f869d12ff104c33c2c6d90ad79e5b273b Mon Sep 17 00:00:00 2001 From: "alexey.zablotskiy" Date: Fri, 17 Nov 2023 13:06:17 +0300 Subject: [PATCH] gou_name --- reportdmunit.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reportdmunit.pas b/reportdmunit.pas index c22b205..d7d37af 100644 --- a/reportdmunit.pas +++ b/reportdmunit.pas @@ -417,7 +417,7 @@ var OptionValue: String; begin - SQL := 'select name,value from options where name in (''GOU_Name'',''Dep_Name'')'; + SQL := 'select name, convert_from(value,''WIN1251'') as value from options where name in (''GOU_Name'',''Dep_Name'')'; with NidbData.GetData(sql) do try while not eof do @@ -430,7 +430,7 @@ begin end; for i := 1 to 5 do AVariables['GOU_Name'+inttostr(i)] := AVariables['GOU_Name']; - with NidbData.GetData('SELECT name,value from options WHERE name like ''GOU_Name%'' ') do + with NidbData.GetData('SELECT name,convert_from(value,''WIN1251'') as value from options WHERE name like ''GOU_Name%'' ') do try while not eof do begin