-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#2191): protocol parameter change ga is not displayed correctly
- Loading branch information
1 parent
d6398d2
commit 02e686a
Showing
6 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
select ROW_TO_JSON(epoch_param) from epoch_param order by epoch_no desc limit 1; | ||
SELECT | ||
jsonb_set( | ||
ROW_TO_JSON(epoch_param)::jsonb, | ||
'{cost_model}', | ||
CASE | ||
WHEN cost_model.id IS NOT NULL THEN | ||
ROW_TO_JSON(cost_model)::jsonb | ||
ELSE | ||
'null'::jsonb | ||
END | ||
) AS epoch_param | ||
FROM | ||
epoch_param | ||
LEFT JOIN | ||
cost_model ON epoch_param.cost_model_id = cost_model.id | ||
ORDER BY | ||
epoch_no DESC | ||
LIMIT 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters