U4-8729 - reviewing PR

This commit is contained in:
Stephan
2016-07-19 11:13:49 +02:00
parent 764f10327e
commit 2481b77f03
3 changed files with 90 additions and 87 deletions

View File

@@ -29,11 +29,11 @@ namespace Umbraco.Core.Persistence.SqlSyntax
public override string GetQuotedTableName(string tableName)
{
if (tableName.Contains(".")) {
var tableNameParts = tableName.Split(new char[] { '.' }, 2);
return string.Format("[{0}].[{1}]", tableNameParts[0], tableNameParts[1]);
} else
if (tableName.Contains(".") == false)
return string.Format("[{0}]", tableName);
var tableNameParts = tableName.Split(new[] { '.' }, 2);
return string.Format("[{0}].[{1}]", tableNameParts[0], tableNameParts[1]);
}
public override string GetQuotedColumnName(string columnName)