Skip to content
Snippets Groups Projects
Commit 0c025513 authored by felmer's avatar felmer
Browse files

LMS-2356 bug fixed

SVN: 21933
parent 7c115e19
No related branches found
No related tags found
No related merge requests found
...@@ -30,11 +30,16 @@ values ...@@ -30,11 +30,16 @@ values
CREATE OR REPLACE FUNCTION assign_analysis_property() RETURNS integer AS $$ CREATE OR REPLACE FUNCTION assign_analysis_property() RETURNS integer AS $$
DECLARE DECLARE
rec RECORD; rec RECORD;
next_ordinal ordinal_int;
BEGIN BEGIN
FOR rec IN select id from data_set_types where code = 'HCS_IMAGE_ANALYSIS_DATA' FOR rec IN select id from data_set_types where code = 'HCS_IMAGE_ANALYSIS_DATA'
or code like 'HCS_ANALYSIS_WELL%' or code like 'HCS_ANALYSIS_WELL%'
or code like 'HCS_IMAGE%OVERLAY%' or code like 'HCS_IMAGE%OVERLAY%'
or code like 'HCS_IMAGE_SEGMENTATION%' LOOP or code like 'HCS_IMAGE_SEGMENTATION%' LOOP
next_ordinal = (select max(ordinal)+1 from data_set_type_property_types where id = rec.id);
if next_ordinal is null then
next_ordinal = 1;
end if;
insert into data_set_type_property_types insert into data_set_type_property_types
( id ( id
,dsty_id ,dsty_id
...@@ -51,7 +56,7 @@ BEGIN ...@@ -51,7 +56,7 @@ BEGIN
,false ,false
,false ,false
,(select id from persons where user_id ='system') ,(select id from persons where user_id ='system')
,(select max(ordinal)+1 from data_set_type_property_types) ,next_ordinal
); );
END LOOP; END LOOP;
RETURN 1; RETURN 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment