diff --git a/scripts/resource/file-centric-stand-alone-product-moduleid-validation-proc.sql b/scripts/resource/file-centric-stand-alone-product-moduleid-validation-proc.sql index 9eb9f81..0a81915 100644 --- a/scripts/resource/file-centric-stand-alone-product-moduleid-validation-proc.sql +++ b/scripts/resource/file-centric-stand-alone-product-moduleid-validation-proc.sql @@ -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); @@ -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;