Skip to content

Commit

Permalink
chore:maximize decimal value
Browse files Browse the repository at this point in the history
  • Loading branch information
taolx0 committed Mar 12, 2024
1 parent 124f1ab commit c431a28
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 c431a28

Please sign in to comment.