Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit cbd26c8

Browse files
committed
clean ComputeHash()
1 parent 2290cad commit cbd26c8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ServiceStack.OrmLite/Expressions/SqlExpression.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ public string ComputeHash(bool includeParams=true)
157157
if (Offset != null || Rows != null)
158158
sb.Append(Offset ?? 0).Append(',').Append(Rows ?? 0).AppendLine();
159159

160-
var flags = 0;
161-
sb.Append("FLAGS=");
160+
sb.Append("FLAGS:");
162161
sb.Append(CustomSelect ? "1" : "0");
163162
sb.Append(PrefixFieldWithTableName ? "1" : "0");
164163
sb.Append(useFieldName ? "1" : "0");
@@ -172,12 +171,12 @@ public string ComputeHash(bool includeParams=true)
172171

173172
if (includeParams && Params.Count > 0)
174173
{
175-
sb.AppendLine("PARAMS=");
174+
sb.AppendLine("PARAMS:");
176175
for (var i = 0; i < Params.Count; i++)
177176
{
177+
sb.Append(Params[i].ParameterName).Append('=');
178178
sb.AppendLine(Params[i].Value.ConvertTo<string>());
179179
}
180-
sb.AppendLine();
181180
}
182181

183182
var uniqueExpr = StringBuilderCache.ReturnAndFree(sb);

0 commit comments

Comments
 (0)