File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9211,14 +9211,20 @@ function TDBQuery.MaxLength(Column: Integer): Int64;
92119211function TDBQuery.ValueList (Column: Integer): TStringList;
92129212var
92139213 ColAttr: TTableColumn;
9214+ i: Integer;
92149215begin
92159216 Result := TStringList.Create;
92169217 Result.QuoteChar := ' '' ' ;
92179218 Result.Delimiter := ' ,' ;
92189219 ColAttr := ColAttributes(Column);
92199220 if Assigned(ColAttr) then case ColAttr.DataType.Index of
9220- dbdtEnum, dbdtSet:
9221+ dbdtEnum, dbdtSet: begin
92219222 Result.DelimitedText := ColAttr.LengthSet;
9223+ // Take care for escaped ENUM definitions, see issue #799
9224+ for i:=0 to Result.Count-1 do begin
9225+ Result[i] := FConnection.UnescapeString(Result[i]);
9226+ end ;
9227+ end ;
92229228 dbdtBool:
92239229 Result.DelimitedText := ' true,false' ;
92249230 end ;
You can’t perform that action at this time.
0 commit comments