Update signatures in functions

This commit is contained in:
Carla Iriberri 2016-09-01 15:37:08 +02:00
parent fb183b07ee
commit cf2f86136b

View File

@ -3,7 +3,6 @@ CREATE TYPE cdb_dataservices_client.ds_return_metadata as (colnames text[], colt
CREATE OR REPLACE FUNCTION cdb_dataservices_client._DST_PrepareTableOBS_GetMeasure( CREATE OR REPLACE FUNCTION cdb_dataservices_client._DST_PrepareTableOBS_GetMeasure(
output_table_name text, output_table_name text,
function_name text,
params json params json
) RETURNS boolean AS $$ ) RETURNS boolean AS $$
DECLARE DECLARE
@ -37,7 +36,6 @@ BEGIN
user_db_role, user_db_role,
user_schema, user_schema,
output_table_name, output_table_name,
function_name,
params params
) INTO result; ) INTO result;
@ -48,7 +46,6 @@ $$ LANGUAGE 'plpgsql' SECURITY DEFINER;
CREATE OR REPLACE FUNCTION cdb_dataservices_client._DST_PopulateTableOBS_GetMeasure( CREATE OR REPLACE FUNCTION cdb_dataservices_client._DST_PopulateTableOBS_GetMeasure(
table_name text, table_name text,
output_table_name text, output_table_name text,
function_name text,
params json params json
) RETURNS boolean AS $$ ) RETURNS boolean AS $$
DECLARE DECLARE
@ -87,7 +84,6 @@ BEGIN
dbname, dbname,
table_name, table_name,
output_table_name, output_table_name,
function_name,
params params
) INTO result; ) INTO result;
@ -102,9 +98,9 @@ CREATE OR REPLACE FUNCTION cdb_dataservices_client.__DST_PrepareTableOBS_GetMeas
user_db_role text, user_db_role text,
user_schema text, user_schema text,
output_table_name text, output_table_name text,
function_name text,
params json params json
) RETURNS boolean AS $$ ) RETURNS boolean AS $$
function_name = 'GetMeasure'
# Obtain return types for augmentation procedure # Obtain return types for augmentation procedure
ds_return_metadata = plpy.execute("SELECT colnames, coltypes " ds_return_metadata = plpy.execute("SELECT colnames, coltypes "
"FROM cdb_dataservices_client._DST_GetReturnMetadata({username}::text, {orgname}::text, {function_name}::text, {params}::json);" "FROM cdb_dataservices_client._DST_GetReturnMetadata({username}::text, {orgname}::text, {function_name}::text, {params}::json);"
@ -145,9 +141,9 @@ CREATE OR REPLACE FUNCTION cdb_dataservices_client.__DST_PopulateTableOBS_GetMea
dbname text, dbname text,
table_name text, table_name text,
output_table_name text, output_table_name text,
function_name text,
params json params json
) RETURNS boolean AS $$ ) RETURNS boolean AS $$
function_name = 'GetMeasure'
# Obtain return types for augmentation procedure # Obtain return types for augmentation procedure
ds_return_metadata = plpy.execute( ds_return_metadata = plpy.execute(
"SELECT colnames, coltypes " "SELECT colnames, coltypes "