Skip to content

Commit

Permalink
fixup! feat: use postal code as province parameter for french country
Browse files Browse the repository at this point in the history
  • Loading branch information
JiDai committed Apr 7, 2023
1 parent 1389bcd commit b0229c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/countries/france.pgsql
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ DECLARE
t_holiday holidays.holiday%rowtype;

BEGIN
IF p_province ~ '^[0-9]{5}$' THEN
IF p_province ~ '^[0-9]{5}$' THEN
-- set province from postal code
IF LEFT(p_province, 2) IN ('57', '67', '68') THEN
IF LEFT(p_province, 2) IN ('57', '67', '68') THEN
p_province := 'Alsace-Moselle';
ELSE
CASE LEFT(p_province, 3)
Expand Down Expand Up @@ -203,7 +203,7 @@ BEGIN
t_holiday.description := 'Deuxième jour de Noël';
RETURN NEXT t_holiday;
END IF;

-- Citizenship Day
t_holiday.reference := 'Citizenship Day';
IF p_province = 'Nouvelle-Calédonie' THEN
Expand Down

0 comments on commit b0229c3

Please sign in to comment.