upper in payments
This commit is contained in:
parent
662c7b8ba8
commit
c051831d6d
1 changed files with 6 additions and 1 deletions
|
|
@ -12,7 +12,12 @@ with
|
|||
cast({{ adapter.quote("RefundDate") }} as date) as refunded_date_utc,
|
||||
{{ adapter.quote("CreatedDate") }} as created_at_utc,
|
||||
cast({{ adapter.quote("CreatedDate") }} as date) as created_date_utc,
|
||||
{{ adapter.quote("CurrencyIso") }} as currency,
|
||||
-- The field in SQL Server is this funny case insensitive shit that is
|
||||
-- supposed to not be case sensitive due to the db collation but somehow
|
||||
-- does store different cases. There is one pesky record where EUR is
|
||||
-- stored as Eur. I placed this upper to save us from this and future
|
||||
-- weird ones.
|
||||
upper({{ adapter.quote("CurrencyIso") }}) as currency,
|
||||
{{ adapter.quote("PaymentDate") }} as paid_at_utc,
|
||||
cast({{ adapter.quote("PaymentDate") }} as date) as paid_date_utc,
|
||||
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue