New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored Table.cs and Index.cs to use StringBuilder #103

Open
wants to merge 2 commits into
base: develop
from

Conversation

Projects
None yet
2 participants
@axeh

axeh commented Nov 15, 2018

Refactored Table.cs and Index.cs to use StringBuilder instead of string

@@ -458,14 +458,14 @@ private string ToSQLTableRebuild()
{
var listColumns = columnNamesStringBuilder.ToString(0, columnNamesStringBuilder.Length - 1);
var listValues = valuesStringBuilder.ToString(0, valuesStringBuilder.Length - 1);
sql += ToSQLTemp(tempTable) + "\r\n";
sql.Append(ToSQLTemp(tempTable) + "\r\n");

This comment has been minimized.

@igitur

igitur Nov 15, 2018

Member

Use sql.AppendLine(...) without the "\r\n" for these kinds of statements.

Alen Huskic
Refactored Table.cs and Index.cs to use StringBuilder. Used AppendLin…
…e insted of Append when ending was "\r\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment