Skip to content

Commit

Permalink
fix: case in test and import function
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Mar 2, 2022
1 parent b276405 commit 4b51aa0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions schema/deploy/util_functions/import_swrs_operators_from_fdw.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ begin
) (
select
format('{
"swrs_organisation_id": %%s,
"swrs_legal_name": "%%s",
"swrs_trade_name": "%%s",
"legal_name": "%%s",
"trade_name": "%%s"
"swrsOrganisationId": %%s,
"swrsLegalName": "%%s",
"swrsTradeName": "%%s",
"legalName": "%%s",
"tradeName": "%%s"
}',
operators_to_insert.swrs_organisation_id,
operators_to_insert.swrs_legal_name,
Expand Down
22 changes: 11 additions & 11 deletions schema/test/unit/util_functions/import_swrs_operators_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ select is_empty(
select results_eq(
$$
select
(new_form_data->'swrs_organisation_id')::int,
(new_form_data->'swrsOrganisationId')::int,
operation::text,
change_reason::text,
change_status::text
Expand Down Expand Up @@ -81,11 +81,11 @@ select results_eq(
select results_eq(
$$
select
(new_form_data->'swrs_organisation_id')::int,
new_form_data->>'swrs_trade_name',
new_form_data->>'swrs_legal_name',
new_form_data->>'trade_name',
new_form_data->>'legal_name',
(new_form_data->'swrsOrganisationId')::int,
new_form_data->>'swrsTradeName',
new_form_data->>'swrsLegalName',
new_form_data->>'tradeName',
new_form_data->>'legalName',
operation::text,
change_reason::text
from cif.form_change where form_data_table_name='operator'
Expand Down Expand Up @@ -131,11 +131,11 @@ drop server test_swrs_server cascade;
select results_eq(
$$
select
(new_form_data->'swrs_organisation_id')::int,
new_form_data->>'swrs_trade_name',
new_form_data->>'swrs_legal_name',
new_form_data->>'trade_name',
new_form_data->>'legal_name',
(new_form_data->'swrsOrganisationId')::int,
new_form_data->>'swrsTradeName',
new_form_data->>'swrsLegalName',
new_form_data->>'tradeName',
new_form_data->>'legalName',
operation::text,
change_reason::text,
change_status::text
Expand Down

0 comments on commit 4b51aa0

Please sign in to comment.