[#257] postgis table cannot be opened

Date:
2007-01-06 01:04
Priority:
3
State:
Open
Submitted by:
Didrik Pinte (dpinte)
Assigned to:
Didrik Pinte (dpinte)
Category:
none
Version:
none
Resolution:
none
Summary:
postgis table cannot be opened

Detailed description
Using the latest svn version on a Debian system with psycopg 1, I get the following error while opening a postgis table :

Can't open the database table 'network'

I've updated Thuban/UI/mainwindow.py in order to get more info about the problem . So I've added a str of the Exception to the RunMessageBox call.

Can't open the database table 'network'
ERROR: column "cellgeom" does not exist

SELECT srid, type FROM geometry_columns WHERE f_table_name = '"network"' AND f_geometry_column = cellgeom

This is pretty strange. The table name is quoted and don't have to and the column name is not even single quoted. The corresponding line of code is :

Thuban/Model/postgisdb.py - line 533 :

cursor.execute("SELECT srid, type FROM geometry_columns"
" WHERE f_table_name = %s AND f_geometry_column=%s",
(self.tablename, self.geometry_column))

The postgresql backend is a 8.1 server with latin-1 database and postgis 1.6. My locale are ISO-8859-1.

Message  ↓
Date: 2007-12-01 00:01
Sender: Bernhard Reiter

Didrik, can you restest with current SVN.
I could open tables again with this version.

Date: 2007-01-06 01:09
Sender: Didrik Pinte

It seems related to one of the problem described in bug #224 ...

No attached documents

Field Old Value Date By
assigned_tonone2007-12-01 00:01Bernhard Reiter