Merge branch 'peta-poco-issues' of https://github.com/pynej/Umbraco-CMS into temp-u4-8729
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user