Skip to content

Commit

Permalink
Temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
QuyenLy87 committed Jan 24, 2024
1 parent 60e9400 commit 5806277
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
********************************************************************************/
drop procedure if exists validate_stand_alone_product_module_id;
create procedure validate_stand_alone_product_module_id(dbname char(255),runid BIGINT, assertionid char(36), internationalModules char(255))
create procedure validate_stand_alone_product_module_id(dbname char(255),runid BIGINT, assertionid char(36), international_modules char(255))
begin
declare no_more_rows integer default 0;
declare tb_name char(255);
Expand All @@ -20,7 +20,7 @@ leave myloop;
end if;
set @component = substring_index(tb_name,'_s',1);
set @details = CONCAT('CONCAT(\'',@component,'\',\' ::id= \',a.id,\' ::module id: \',a.moduleid,\' must not be in Internationl modules\')');
set @sql = CONCAT('insert into qa_result(run_id, assertion_id,concept_id, details) select ', runid,',',assertionid,',0,',@details,' from (select id,moduleid from ', substring_index(dbname,'.',1),'.',tb_name, ' where moduleid in (',internationalModules,')) a;');
set @sql = CONCAT('insert into qa_result(run_id, assertion_id,concept_id, details) select ', runid,',',assertionid,',0,',@details,' from (select id,moduleid from ', substring_index(dbname,'.',1),'.',tb_name, ' where moduleid in (',international_modules,'));');
prepare stmt from @sql;
execute stmt;
drop prepare stmt;
Expand Down

0 comments on commit 5806277

Please sign in to comment.