We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b926212 commit 2362d13Copy full SHA for 2362d13
1 file changed
src/Database/Sql.cs
@@ -74,18 +74,17 @@ private void Build()
74
75
public Sql Append(Sql sql)
76
{
77
- if (_rhs != null)
+ Sql last = this;
78
+ while (last._rhs != null)
79
- _rhs.Append(sql);
80
- }
81
- else
82
- {
83
- _rhs = sql;
+ last = last._rhs;
84
}
+ last._rhs = sql;
85
86
return this;
87
88
+
89
public Sql Append(string sql, params object[] args)
90
91
return Append(new Sql(sql, args));
0 commit comments