Skip to content

Commit 76d90eb

Browse files
authored
Merge pull request #2307 from actiontech/issue-1407-cherry-pick
chore:maximize decimal value
2 parents c93746d + 36f5499 commit 76d90eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqle/model/audit_plan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (s *Storage) UpdateSlowLogAuditPlanSQLs(auditPlanId uint, sqls []*AuditPlan
257257
COALESCE(JSON_EXTRACT(info, '$.counter'), 0)
258258
+COALESCE(JSON_EXTRACT(values(info), '$.counter'), 1)
259259
)
260-
AS DECIMAL(12,6)
260+
AS DECIMAL(65,6)
261261
),
262262
'$.first_query_at', IF(
263263
JSON_TYPE(JSON_EXTRACT(info, '$.first_query_at'))="NULL",
@@ -307,7 +307,7 @@ ON DUPLICATE KEY UPDATE sql_content = VALUES(sql_content),
307307
COALESCE(JSON_EXTRACT(info, '$.counter'), 0)
308308
+ COALESCE(JSON_EXTRACT(VALUES(info), '$.counter'), 1)
309309
)
310-
AS DECIMAL(12, 6)),
310+
AS DECIMAL(65,6)),
311311
'$.start_time',
312312
JSON_EXTRACT(values(info), '$.start_time'));`
313313

0 commit comments

Comments
 (0)