Skip to content

Commit

Permalink
Explicitly name coalesced columns
Browse files Browse the repository at this point in the history
  • Loading branch information
rautenrieth-da committed Jan 18, 2022
1 parent 1cb3941 commit 5bbb27f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class ContractStorageBackendTemplate(
)
val coalescedColumns: String = resultColumns
.map(columnName =>
s"COALESCE(divulgence_events.$columnName, create_event_unrestricted.$columnName)"
s"COALESCE(divulgence_events.$columnName, create_event_unrestricted.$columnName) as $columnName"
)
.mkString(", ")
activeContractSqlLiteral(
Expand Down

0 comments on commit 5bbb27f

Please sign in to comment.