Commit d2e89ba
fix: handle psycopg2 auto-deserialized JSON in codecs
psycopg2 automatically deserializes JSONB columns to Python dict/list,
unlike PyMySQL which returns strings. Check if data is already
deserialized before calling json.loads().
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent fd4e011 commit d2e89ba
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
548 | 550 | | |
549 | 551 | | |
550 | 552 | | |
| |||
562 | 564 | | |
563 | 565 | | |
564 | 566 | | |
565 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
566 | 571 | | |
567 | 572 | | |
568 | 573 | | |
| |||
0 commit comments