From bd33128085544c0a91a9cf3db54b91d09911f436 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 27 Nov 2012 10:08:22 +0100 Subject: [PATCH] Fix for an Issue #262 --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 441fd710f..3fd5b53b7 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2759,7 +2759,7 @@ def safeSQLIdentificatorNaming(name, isTable=False): elif Backend.getIdentifiedDbms() in (DBMS.MSSQL,): retVal = "[%s]" % retVal.strip("[]") - if _ and DEFAULT_MSSQL_SCHEMA not in retVal: + if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re.sub(r"\[[^]]+\]", "", retVal): retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, retVal) return retVal