danieleteti / delphiredisclient

Redis client for Delphi
Apache License 2.0
309 stars 134 forks source link

TRedisCommand SetCommand bug. #14

Closed hippowar closed 4 years ago

hippowar commented 5 years ago

Access violation raied in TRedisCommand with SetCommand used like this.

vRedisCommand.SetCommand('SET').Add('test').....

because, TRedisCommand.SetCommand not return self object. function TRedisCommand.SetCommand(AString: string): IRedisCommand; begin FParts.Clear; FParts.Add(TEncoding.ASCII.GetBytes(AString)); FCommandIsSet := True; Result := Self; <-- need this. end;