Merge branch 'peta-poco-issues' of https://github.com/pynej/Umbraco-CMS into temp-u4-8729

This commit is contained in:
Stephan
2016-07-19 10:57:03 +02:00
3 changed files with 17 additions and 6 deletions

View File

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