Commit b142e59
authored
Emulate the
Emulate the `VERSION()` function in the SQLite driver
This replaces the old implementation from the legacy SQLite translator
that's defined in `WP_SQLite_PDO_User_Defined_Functions` and returns
`5.5`.
Emulating it directly in the driver should also be faster than calling a
PHP function from SQLite.
This function is used in WordPress core and causes outdated database
warning on the Site Health screen.VERSION() function in the SQLite driver (#281)1 parent def2400 commit b142e59
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11134 | 11134 | | |
11135 | 11135 | | |
11136 | 11136 | | |
| 11137 | + | |
| 11138 | + | |
| 11139 | + | |
| 11140 | + | |
| 11141 | + | |
11137 | 11142 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3963 | 3963 | | |
3964 | 3964 | | |
3965 | 3965 | | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
3966 | 3975 | | |
3967 | 3976 | | |
3968 | 3977 | | |
| |||
0 commit comments