Skip to content

db.univar: fix Python error when input table not existing - #7726

Merged
petrasovaa merged 2 commits into
OSGeo:mainfrom
neteler:python_script_db
Jul 15, 2026
Merged

petrasovaa merged 2 commits into
OSGeo:mainfrom
neteler:python_script_db

Conversation

@neteler

@neteler neteler commented Jul 15, 2026

Copy link
Copy Markdown
Member

This PR fixes a Python error when the input table is not existing:

db.univar bla column=value
WARNING: Table <bla> not found in database
         <$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db> using driver
         <sqlite>
ERROR: Unable to describe table <bla>

Fixes #3760

This PR fixes a Python error when the input table is not existing:

```sh
db.univar bla column=value
WARNING: Table <bla> not found in database
         <$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db> using driver
         <sqlite>
ERROR: Unable to describe table <bla>
```

Fixes OSGeo#3760
@neteler neteler added this to the 8.6.0 milestone Jul 15, 2026
@neteler neteler self-assigned this Jul 15, 2026
@neteler neteler added bug Something isn't working backport to 8.5 PR needs to be backported to release branch 8.5 Python Related code is in Python labels Jul 15, 2026
Comment thread python/grass/script/db.py Resolved
@petrasovaa
petrasovaa merged commit f634639 into OSGeo:main Jul 15, 2026
26 checks passed
@neteler
neteler deleted the python_script_db branch July 15, 2026 21:31
@neteler neteler removed the backport to 8.5 PR needs to be backported to release branch 8.5 label Jul 15, 2026
@neteler neteler modified the milestones: 8.6.0, 8.5.1 Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working libraries Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] db.univar fails with Python error when input table not existing

2 participants