Skip to content

Commit

Permalink
Merge pull request #312 from mk3008/311-there-is-no-uniformity-in-the…
Browse files Browse the repository at this point in the history
…-behavior-of-addoperatablevalue

Changed the specifications of AddOperatorValue
  • Loading branch information
mk3008 authored Jan 26, 2024
2 parents 200e120 + 212990a commit 728069d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Carbunql/Clauses/ValueBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public ValueBase AddOperatableValue(string @operator, ValueBase value)
if (OperatableValue != null)
{
OperatableValue.Value.AddOperatableValue(@operator, value);
return value;
return this;
}
OperatableValue = new OperatableValue(@operator, value);
return value;
return this;
}

public string RecommendedName { get; set; } = string.Empty;
Expand Down

0 comments on commit 728069d

Please sign in to comment.