future proof build-db.sh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Evergreen master
In Open-ILS/
DB_VERSION=`psql -qtc 'show server_version;' | xargs | cut -c1,3`
In most cases, this results in the first and third character being pulled into the version, like:
version = 9.5.9 becoming "95" as the result.
With the upcoming PostgreSQL 10, this comes back as:
version = 10.0 becoming "1." as the result.
Grabbing an idea from the comparison recently added in eg_db_config to test for higher postgresql versions, we should change the line to be like this:
DB_VERSION=`psql -qtc 'show server_version;' | xargs | cut -d. -f 1,2 | tr -d '.'`
This properly results in a DB_VERSION value like "100" with PostgreSQL 10.0
Patch forthcoming to future proof and fix build-db.sh script.
Changed in evergreen: | |
milestone: | 3.next → 3.1-beta |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Working branch: user/bshum/ lp1730721- fix-build- db.sh
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ bshum/lp1730721 -fix-build- db.sh