Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBManager doesn't allow to load PostGis Raster with a number as first character #21646

Closed
qgib opened this issue Oct 15, 2015 · 3 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin

Comments

@qgib
Copy link
Contributor

qgib commented Oct 15, 2015

Author Name: Loïc BARTOLETTI (@lbartoletti)
Original Redmine Issue: 13607
Affected QGIS version: 2.8.3
Redmine category:db_manager


DBManager doesn't allow to load PostGis Raster with a number as first character. The same Raster into PostGis can't be load if the first character of table name is a digit.

Here, some tests with table name:

rast : allowed
2rast : unallowed
_rast : allowed

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2015

Author Name: Sebastian Dietrich (Sebastian Dietrich)


This is a GDAL bug. GDAL does not quote identifiers, usernames and passwords. Instead it actually removes quotes when they are given in the connection string.

While rast does not need quoting, 2rast needs to be quoted. So @select * FROM rast@ works but @select * FROM 2rast@ gives a syntax error.

To reproduce run on the commandline:

gdalinfo "PG: dbname=database host=127.0.0.1 user=username password=pass port=5432 mode=2 schema=public column=rast table=2rast"

Note that the following are related errors:

So please close this bug and head over to the "GDAL PostGIS Raster driver":https://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html#a4-Reportingproblems and open a new one there.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR

Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • resolution was changed from to end of life
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin
Projects
None yet
Development

No branches or pull requests

1 participant