Skip to content

Commit

Permalink
fix rogue NumVoie
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Ninucci committed Mar 2, 2023
1 parent 6aa5637 commit 46d13c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/sirene.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func sqlSireneUL(ctx context.Context, data []goSirene.SireneUL) error {
etat_administratif text,
economie_sociale_solidaire boolean,
caractere_employeur boolean,
code_naf text,
nomenclature_naf text,
code_activite text,
nomen_activite text,
insert bool)
on commit drop;`)

Expand All @@ -258,8 +258,8 @@ func sqlSireneUL(ctx context.Context, data []goSirene.SireneUL) error {
etat_administratif,
economie_sociale_solidaire,
caractere_employeur,
code_naf,
nomenclature_naf) values
code_activite,
nomen_activite) values
($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,
$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22);`
for _, sirene := range data {
Expand All @@ -273,7 +273,7 @@ func sqlSireneUL(ctx context.Context, data []goSirene.SireneUL) error {
identifiant_association, tranche_effectif, annee_effectif,
categorie, annee_categorie, etat_administratif,
economie_sociale_solidaire, caractere_employeur,
code_naf, nomenclature_naf) select
code_activite, nomen_activite) select
ul.siren,
ul.siret_siege,
ul.raison_sociale,
Expand All @@ -294,8 +294,8 @@ func sqlSireneUL(ctx context.Context, data []goSirene.SireneUL) error {
ul.etat_administratif,
ul.economie_sociale_solidaire,
ul.caractere_employeur,
ul.code_naf,
ul.nomenclature_naf
ul.code_activite,
ul.nomen_activite
from tmp_sirene_ul ul
`)
results := tx.SendBatch(ctx, batch)
Expand Down

0 comments on commit 46d13c3

Please sign in to comment.