song
4b57e80e6a
fix: jsonb_set 嵌套路径无法创建多层 key 的问题
PostgreSQL jsonb_set 在 create_if_missing=true 时无法一次性创建多层嵌套路径。
例如设置 {antigravity_quota_scopes,gemini_image} 时,如果 antigravity_quota_scopes 不存在,
jsonb_set 不会自动创建外层 key,导致更新静默失败(affected=1 但数据未变)。
修复方案:嵌套两次 jsonb_set,先确保外层 key 存在,再设置内层值。
影响范围:
- SetAntigravityQuotaScopeLimit: Antigravity 平台按模型 scope 限流
- SetModelRateLimit: Anthropic 平台 Sonnet 模型限流
2026-01-26 23:40:48 +08:00
..
2026-01-17 18:03:45 +08:00
2026-01-23 22:24:46 +08:00
2026-01-01 01:43:20 +08:00
2026-01-12 14:42:58 +08:00
2026-01-23 10:44:21 +08:00
2026-01-26 23:40:48 +08:00
2026-01-20 14:17:10 +08:00
2026-01-24 01:14:44 +08:00
2026-01-06 10:13:12 +08:00
2026-01-05 14:41:08 +08:00
2026-01-16 17:05:49 +08:00