Skip to content
Snippets Groups Projects
Unverified Commit e405f005 authored by ThanKarab's avatar ThanKarab Committed by GitHub
Browse files

Merge pull request #26 from HBPMedical/cherrypick_changes_from_7.2.0

Update V7_1__NewExperimentResultFormat.sql
parents 6d453d78 c20d7816
No related branches found
No related tags found
No related merge requests found
UPDATE experiment SET result = result::json #>>'{0,result}' WHERE (algorithm::json->>'type') <> 'workflow';
\ No newline at end of file
CREATE OR REPLACE FUNCTION ISJSON(p_json text)
RETURNS boolean
AS
$$
BEGIN
RETURN (p_json::json is not null);
EXCEPTION
WHEN others THEN
RETURN false;
END;
$$
language plpgsql
immutable;
UPDATE experiment SET result = result::json #>>'{0,result}' WHERE (algorithm::json->>'type') <> 'workflow' and ISJSON(result);
UPDATE experiment SET result = '', status = 'error' WHERE NOT ISJSON(result);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment