Skip to content

Commit

Permalink
Merge pull request #2307 from actiontech/issue-1407-cherry-pick
Browse files Browse the repository at this point in the history
chore:maximize decimal value
  • Loading branch information
ColdWaterLW authored Mar 13, 2024
2 parents c93746d + 36f5499 commit 76d90eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqle/model/audit_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (s *Storage) UpdateSlowLogAuditPlanSQLs(auditPlanId uint, sqls []*AuditPlan
COALESCE(JSON_EXTRACT(info, '$.counter'), 0)
+COALESCE(JSON_EXTRACT(values(info), '$.counter'), 1)
)
AS DECIMAL(12,6)
AS DECIMAL(65,6)
),
'$.first_query_at', IF(
JSON_TYPE(JSON_EXTRACT(info, '$.first_query_at'))="NULL",
Expand Down Expand Up @@ -307,7 +307,7 @@ ON DUPLICATE KEY UPDATE sql_content = VALUES(sql_content),
COALESCE(JSON_EXTRACT(info, '$.counter'), 0)
+ COALESCE(JSON_EXTRACT(VALUES(info), '$.counter'), 1)
)
AS DECIMAL(12, 6)),
AS DECIMAL(65,6)),
'$.start_time',
JSON_EXTRACT(values(info), '$.start_time'));`

Expand Down

0 comments on commit 76d90eb

Please sign in to comment.