Skip to content

Commit 87b7c71

Browse files
committed
Add type cast in SQL
1 parent 2b1fdf0 commit 87b7c71

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

mcc/resources/queries/mcc/aggregatedDemographics.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ SELECT
2626
o.infant_history,
2727
o.fertility_status,
2828
o.medical_history,
29-
null as usage_current,
30-
null as usage_future,
31-
null as breeding_partner_id,
29+
CAST(null AS VARCHAR) as usage_current,
30+
CAST(null AS VARCHAR) as usage_future,
31+
CAST(null AS VARCHAR) as breeding_partner_id,
3232
o.date_of_observations,
3333
d.container
3434

@@ -75,9 +75,9 @@ SELECT
7575
o.infant_history,
7676
o.fertility_status,
7777
o.medical_history,
78-
null as usage_current,
79-
null as usage_future,
80-
null as breeding_partner_id,
78+
CAST(null AS VARCHAR) as usage_current,
79+
CAST(null AS VARCHAR) as usage_future,
80+
CAST(null AS VARCHAR) as breeding_partner_id,
8181
o.date_of_observations,
8282
d.container
8383

0 commit comments

Comments
 (0)