Commit 49aa318
committed
fix: re-encode updatedAt in increase/decreaseDocumentAttribute when preserveDates is enabled
When preserveDates is true, getUpdatedAt() returns the decoded ISO 8601
format (e.g. 2026-03-10T10:33:54.726+00:00) which gets passed directly
to the adapter. MariaDB rejects this format. Re-encode to DB format
(Y-m-d H:i:s.v) before passing to the adapter.1 parent 438cc82 commit 49aa318
File tree
2 files changed
+28
-2
lines changed- src/Database
- tests/e2e/Adapter/Scopes
2 files changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7396 | 7396 | | |
7397 | 7397 | | |
7398 | 7398 | | |
7399 | | - | |
| 7399 | + | |
7400 | 7400 | | |
7401 | 7401 | | |
7402 | 7402 | | |
| |||
7496 | 7496 | | |
7497 | 7497 | | |
7498 | 7498 | | |
7499 | | - | |
| 7499 | + | |
7500 | 7500 | | |
7501 | 7501 | | |
7502 | 7502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1537 | 1537 | | |
1538 | 1538 | | |
1539 | 1539 | | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1540 | 1566 | | |
1541 | 1567 | | |
1542 | 1568 | | |
| |||
0 commit comments