/*ALIAS>prop_db*/

/*SQLStart>1850*/
create or alter procedure CompDescrAddFirstRecord
as
declare variable COUNTROW integer;
begin
SELECT count(*)FROM compdescr WHERE (compdescr.cd_id = 0) INTO countrow;
if (:countrow = 0) then
  INSERT INTO compdescr(compdescr.cd_id, compdescr.cd_str, compdescr.cd_flags) VALUES (0,'Logs', 'Flags');
end;
/*SQLStop>1850*/

/*ManyStart>1851*/
execute procedure CompDescrAddFirstRecord;
/*ManyStop>1851*/

/*ManyStart>1852*/
drop procedure CompDescrAddFirstRecord;
/*ManyStop>1852*/