Repository navigation
Commit 6b7f989
committed
Repair DATETIME_PRECISION stored by older driver versions
Older driver versions read the precision from the whole "(3)" node,
which casts to 0, so INFORMATION_SCHEMA.COLUMNS reported a
DATETIME_PRECISION of 0 for every TIME(n), DATETIME(n), and TIMESTAMP(n)
column. Repair the stored values when configuring the database, using
the precision in COLUMN_TYPE.
The repair of temporal zero defaults now runs after it, and it reads the
repaired DATETIME_PRECISION instead of parsing COLUMN_TYPE itself.1 parent fe98e62 commit 6b7f989
2 files changed
Lines changed: 57 additions & 12 deletions
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
317 | 339 | | |
318 | 340 | | |
319 | 341 | | |
| |||
324 | 346 | | |
325 | 347 | | |
326 | 348 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
| 349 | + | |
333 | 350 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 351 | + | |
340 | 352 | | |
341 | 353 | | |
342 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5743 | 5743 | | |
5744 | 5744 | | |
5745 | 5745 | | |
| 5746 | + | |
| 5747 | + | |
| 5748 | + | |
| 5749 | + | |
| 5750 | + | |
| 5751 | + | |
| 5752 | + | |
| 5753 | + | |
| 5754 | + | |
| 5755 | + | |
| 5756 | + | |
| 5757 | + | |
| 5758 | + | |
| 5759 | + | |
| 5760 | + | |
| 5761 | + | |
| 5762 | + | |
| 5763 | + | |
| 5764 | + | |
| 5765 | + | |
| 5766 | + | |
| 5767 | + | |
| 5768 | + | |
| 5769 | + | |
| 5770 | + | |
| 5771 | + | |
| 5772 | + | |
| 5773 | + | |
| 5774 | + | |
| 5775 | + | |
| 5776 | + | |
| 5777 | + | |
| 5778 | + | |
5746 | 5779 | | |
5747 | 5780 | | |
5748 | 5781 | | |
| |||
0 commit comments