Skip to content

Commit 5c586c1

Browse files
authored
Merge pull request #128 from pgRouting/cayetanobv/fixed_pgr_version
Fixed version check for pgRouting v3 support
2 parents 9899bbf + 5c8f3e1 commit 5c586c1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ This plugin can be installed using the QGIS Plugin Manager.
4343

4444
### Dependencies
4545

46-
pgRouting v2.x up and running to use this plugin.
46+
pgRouting v3.x up and running to use this plugin.
4747

4848
Additionally, QGIS needs python-psycopg2 installed to be able to connect to the database.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This plugin can be installed using the QGIS Plugin Manager.
3737
### Dependencies
3838

3939
- This plugin runs only with QGIS 3.x and Python 3.
40-
- pgRouting v2.x up and running to use this plugin.
40+
- pgRouting v3.x up and running to use this plugin.
4141
- Additionally, QGIS needs python-psycopg2 installed to be able to connect to the database.
4242

4343
## Links

pgRoutingLayer_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def getPgrVersion(con):
129129
''' returns version of PostgreSQL database. '''
130130
try:
131131
cur = con.cursor()
132-
cur.execute('SELECT version FROM pgr_version()')
132+
cur.execute('SELECT pgr_version FROM pgr_version()')
133133
row = cur.fetchone()[0]
134134
versions = ''.join([i for i in row if i.isdigit()])
135135
version = versions[0]

0 commit comments

Comments
 (0)