Dont use the defaults in the grant script

This commit is contained in:
Mario de Frutos
2016-01-22 10:55:07 +01:00
parent 49941a78f3
commit 7cce491a13
4 changed files with 7 additions and 4 deletions

View File

@@ -40,6 +40,10 @@ class SqlTemplateRenderer
end
def params_with_type
@function_signature['params'].map { |p| "#{p['name']} #{p['type']}" }.join(', ')
end
def params_with_type_and_default
parameters = @function_signature['params'].map do |p|
if not p['default'].nil?
"#{p['name']} #{p['type']} DEFAULT #{p['default']}"
@@ -49,7 +53,6 @@ class SqlTemplateRenderer
end
return parameters.join(', ')
end
end