AMBARI-21648. Do not use 'dbo' schema name in idempotent Ambari DDL generator for AzureDB. (stoader)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/98f15c94 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/98f15c94 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/98f15c94 Branch: refs/heads/branch-feature-AMBARI-14714 Commit: 98f15c94ee73c7d7ef938108772d3495e1d13e43 Parents: a5b8045 Author: Toader, Sebastian <stoa...@hortonworks.com> Authored: Fri Aug 4 10:04:32 2017 +0200 Committer: Toader, Sebastian <stoa...@hortonworks.com> Committed: Fri Aug 4 10:04:51 2017 +0200 ---------------------------------------------------------------------- ambari-server/src/main/python/azuredb_create_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/98f15c94/ambari-server/src/main/python/azuredb_create_generator.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/python/azuredb_create_generator.py b/ambari-server/src/main/python/azuredb_create_generator.py index 6ceaa90..1794d79 100755 --- a/ambari-server/src/main/python/azuredb_create_generator.py +++ b/ambari-server/src/main/python/azuredb_create_generator.py @@ -38,7 +38,7 @@ for statement in input_statements: statement = re.sub( create_table_re, dedent('''\ - IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('dbo.\g<1>') AND type = 'U') + IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('\g<1>') AND type = 'U') BEGIN \g<0> END