eneec / geoda

Automatically exported from code.google.com/p/geoda
GNU General Public License v3.0
0 stars 0 forks source link

Wrong message on SQLite (and other OGR) failed save #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In GeoDa 1.5.29  for Mac
1) Change permissions on Examples/columbus/sqlite/columbus.sqlite to read only
2) Open Examples/columbus_sqlite.gda
3) Change the value of one cell in the Table
4) Press Save button
5) Error message is given: "Can't create layer "columbus"  Details:Unable to 
create table columbus: table 'columbus' already exists'

Hopefully this error message is just wrong, and OGR isn't actually attempting 
to create a new layer.  Either way, there is a problem here.  This is a 
realistic situation since the included Examples on Windows will be read-only 
for most users.

Original issue reported on code.google.com by mmcc...@gmail.com on 20 Mar 2014 at 12:49

GoogleCodeExporter commented 9 years ago
Yes, it's just a wrong message, the proper message "Attemp to write a readonly 
database" is not thrown out in ogr driver. Change the error message to:

Can't write/create layer 'xxx'
Detail: Attempt to write a readonly database, or Unable to create a layer ....

Fixed in ci 3158.

Original comment by lixun...@gmail.com on 28 Mar 2014 at 9:23