Skip to content

Commit

Permalink
Merge pull request #2306 from actiontech/fix-issue-1405
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 124f1ab + c431a28 commit 3edbad6
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 @@ -258,7 +258,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 @@ -308,7 +308,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 3edbad6

Please sign in to comment.