Commit 284a005
committed
fix: normalize database version strings in admin dashboard
MySQL/MariaDB's version() includes distribution suffixes like
"-MariaDB-0+deb12u2", and PostgreSQL's version() returns a full
platform description. Trim these to display clean version numbers.
- MySQL/MariaDB: strip everything after the first "-"
- PostgreSQL: use SHOW server_version instead of SELECT version(),
which returns a clean semver string without platform info
- SQLite: unchanged (already returns a clean version)1 parent ecdeaba commit 284a005
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
0 commit comments