This repository was archived by the owner on Sep 11, 2026. It is now read-only.
Repository navigation
Commit acfde6a
Fix remaining CI failures across PHP and SQLite versions
- The fake D1 transport probes PDO::ATTR_STRINGIFY_FETCHES readability
with a try/catch instead of a version check; reading the attribute
throws IM001 on PHP 8.1.
- On PHP < 7.3, where getColumnMeta() fails for empty result sets
(PHP bug #79664), the fake now degrades to placeholder column names
instead of none, keeping the column count accurate so that zero-row
SELECTs are still recognized as result sets.
- The no-UDF WEEK(x, 1) rewrite computes the ISO week from the
day-of-year of the week's Thursday instead of STRFTIME('%V'), which
requires SQLite 3.46+ and returned NULL on older libraries (CI links
the system libsqlite 3.45.1).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 5300033 commit acfde6a
2 files changed
Lines changed: 23 additions & 17 deletions
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4826 | 4826 | | |
4827 | 4827 | | |
4828 | 4828 | | |
4829 | | - | |
4830 | | - | |
4831 | | - | |
| 4829 | + | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
4832 | 4837 | | |
4833 | 4838 | | |
4834 | 4839 | | |
4835 | 4840 | | |
4836 | 4841 | | |
4837 | 4842 | | |
4838 | | - | |
| 4843 | + | |
| 4844 | + | |
| 4845 | + | |
| 4846 | + | |
4839 | 4847 | | |
4840 | 4848 | | |
4841 | 4849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| |||
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 213 | + | |
216 | 214 | | |
217 | 215 | | |
218 | 216 | | |
| |||
0 commit comments