mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix creation of tables and columns in GPDB. Fixes #3099
This commit is contained in:
committed by
Dave Page
parent
1a958a3951
commit
15862e903a
@@ -10,8 +10,12 @@ import os
|
||||
|
||||
|
||||
def compile_template_name(template_prefix, template_file_name, server_type, version):
|
||||
return os.path.join(compile_template_path(template_prefix, server_type, version), template_file_name)
|
||||
|
||||
|
||||
def compile_template_path(template_prefix, server_type, version):
|
||||
if server_type == 'gpdb':
|
||||
version_path = '#{0}#{1}#'.format(server_type, version)
|
||||
else:
|
||||
version_path = '#{0}#'.format(version)
|
||||
return os.path.join(template_prefix, version_path, template_file_name)
|
||||
return os.path.join(template_prefix, version_path)
|
||||
|
||||
Reference in New Issue
Block a user