Commit fdfc0bd
test(mysql): avoid double magnitudes with exponent-format divergence
For some magnitudes Go's float formatting (CDC decoder) emits scientific
notation where MySQL's text protocol emits plain decimal (e.g.
1.0000005e+06 vs 1000000.5) -- a documented go-mysql limitation, values
still round-trip. Use small non-whole doubles that render identically in
both paths so the snapshot/CDC consistency assertion holds.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7e9c5f8 commit fdfc0bd
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
254 | 258 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
0 commit comments