Commit 7b059e2
committed
chore: remove DATE._stringify diagnostic; document empirical root cause
CI stack-trace diagnostic (enabled in 6088b1b) captured 12 base
DATE._stringify invocations in the V1 live-api run. All 12 came from
SQLiteQueryGenerator / SQLiteQueryInterface frames - i.e. the SQLite
source writes. Zero came from a MySQL path. The run produced 0
MariaDB datetime rejections, confirming that:
1. Every MySQL mirror write correctly dispatches through
mysql.DATE._stringify (which emits the safe "YYYY-MM-DD HH:mm:ss"
form). The base class is not reached on a MySQL write.
2. The base _stringify IS called for every SQLite source write.
Before this patch, SQLite therefore persisted
"YYYY-MM-DD HH:mm:ss.SSS +00:00" - the exact offset-bearing form
MariaDB strict mode rejects.
3. Some code path (backfill was one; empirical comparison between
4aa768b and 9571d6e shows at least one more that I was unable to
isolate) forwards those SQLite-stored strings to MariaDB verbatim.
The backfill fix (drop raw:true, use `.get({plain:true,raw:true})`)
closed the backfill path. The base-class patch closes the unknown
remaining path by making SQLite never persist the " +00:00" form
in the first place.
Remove the diagnostic counter / env-gated stack logger and the
CADT_DATE_STRINGIFY_DIAG wiring in the V1/V2 live-api CI jobs.
Rewrote the src/config/config.js comment to state the concrete
empirical finding instead of the previous "presumably some internal
path" speculation.1 parent 6088b1b commit 7b059e2
2 files changed
Lines changed: 34 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 317 | | |
326 | 318 | | |
327 | 319 | | |
328 | 320 | | |
329 | 321 | | |
330 | | - | |
| 322 | + | |
331 | 323 | | |
332 | 324 | | |
333 | 325 | | |
| |||
850 | 842 | | |
851 | 843 | | |
852 | 844 | | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | 845 | | |
862 | 846 | | |
863 | 847 | | |
864 | 848 | | |
865 | 849 | | |
866 | 850 | | |
867 | 851 | | |
868 | | - | |
| 852 | + | |
869 | 853 | | |
870 | 854 | | |
871 | 855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | | - | |
32 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 55 | | |
82 | 56 | | |
83 | 57 | | |
| |||
0 commit comments