Skip to content

Commit 51e2f0f

Browse files
committed
docs: add SQL function standardization to Phase 1 (NOW→CURRENT_TIMESTAMP)
1 parent c4276ac commit 51e2f0f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

docs/design/multi-backend-plan.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,17 @@ CORE_TYPES = {
125125
}
126126
```
127127

128-
### 1.4 Design Decisions
128+
### 1.4 SQL Function Standardization
129+
130+
Replaced MySQL-specific `NOW()` with standard SQL `CURRENT_TIMESTAMP` in:
131+
- `jobs.py` - all timestamp queries
132+
- `autopopulate.py` - pending job queries
133+
134+
`CURRENT_TIMESTAMP` works identically on MySQL and PostgreSQL.
135+
136+
**Remaining:** `INTERVAL n SECOND` syntax differs between backends and will be handled by the adapter's `interval_expr()` method.
137+
138+
### 1.5 Design Decisions
129139

130140
| Decision | Rationale |
131141
|----------|-----------|

0 commit comments

Comments
 (0)