This commit is contained in:
Алексей Заблоцкий 2023-11-17 13:06:17 +03:00
parent 2b6d2c161b
commit b10fae4f86

View File

@ -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