pour déploiement auto v2 via gitlab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
1.2 KiB

src: |
SELECT 'I'::text || t_ipa.categorie_code::text AS code,
CASE
WHEN t_ipa.categorie_code <> ''::bpchar THEN ((t_ipa.categorie_texte || ' ('::text) || t_ipa.categorie_code::text) || ')'::text
ELSE 'Non saisi'::text
END AS texte,
CASE
WHEN t_ipa.categorie_code <> ''::bpchar THEN ((t_ipa.categorie_texte_court || ' ('::text) || t_ipa.categorie_code::text) || ')'::text
ELSE 'Non saisi'::text
END AS texte_court
FROM base.t_ipa
WHERE t_ipa.oid <> 0
UNION
SELECT 'S'::text || t_ipa.categorie_code::text AS code,
CASE
WHEN t_ipa.categorie_code <> ''::bpchar THEN ((('SAUF '::text || t_ipa.categorie_texte) || ' ('::text) || t_ipa.categorie_code::text) || ')'::text
ELSE 'SAUF Non saisi'::text
END AS texte,
CASE
WHEN t_ipa.categorie_code <> ''::bpchar THEN ((('SAUF '::text || t_ipa.categorie_texte_court) || ' ('::text) || t_ipa.categorie_code::text) || ')'::text
ELSE 'SAUF Non saisi'::text
END AS texte_court
FROM base.t_ipa
WHERE t_ipa.oid <> 0
ORDER BY 1;