Commit d4494bd
committed
test: update TestGreaterOrEqualVersion for the widened MariaDB guard
The previous test included two hypothetical "future MySQL 22.x" cases
expecting `GreaterOrEqualVersion` to return true. With the guard widened
from `major == 10` to `major >= 10` in the prior commit (to stop MariaDB
11.x being misclassified as "MySQL >= 8.0.23"), those cases now correctly
return false — major >= 10 is treated as MariaDB territory.
Also adds an explicit MariaDB 11.4.9 vs MySQL 8.0.23 case so the issue #82
regression is caught directly by a unit test, plus a doc comment on the
test explaining the heuristic and pointing callers at
`common.HasCapability` for flavor-aware checks.1 parent 9e188c8 commit d4494bd
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
147 | | - | |
148 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
149 | 158 | | |
150 | 159 | | |
151 | 160 | | |
| |||
0 commit comments