Opened 6 years ago
Last modified 6 years ago
#13032 closed defect
Postgres server version reported incorrectly for psql >= 10 — at Initial Version
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.3.3 |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The About Trac page on my dev machine is showing server: 10.0.4
. It should display 10.4:
$ psql -c "SELECT version();" trac tracuser version --------------------------------------------------------------------------------------------------------------- PostgreSQL 10.4 on x86_64-apple-darwin17.5.0, compiled by Apple LLVM version 9.1.0 (clang-902.0.39.1), 64-bit (1 row)
I've done only a cursory investigation, but it looks like the versioning policy has changed. So for version ≥ 10 we should parse 100004
to tuple (10, 4)
: tags/trac-1.3.2/trac/db/postgres_backend.py@:454:#L452.
Note:
See TracTickets
for help on using tickets.