Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#134 closed defect (fixed)

After create a postgis layer and filldata, Qgis dont display attributes

Reported by: abiliomagalhaes@… Owned by: morb_au
Priority: critical: causes crash or data corruption Milestone:
Component: Data Provider Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: 0.7.3 Awaiting user input: no

Description

Dear sirs,

We are beginning to use QGis, however we have some problems that could be errors on your software.

We have the Windows version (0.7.3) and when connect to Postgis, we select the layer (previous created with SQL statement) and edit some points.

After stop editing and save, we leave Qgis and if we enter again on Qgis and ask for that postgis layer, Qgis recognize the database records but it can’t display the information stored on those records, leaving fields blank on attribute table.

Can you help us?

Best regards, Abílio Magalhães

POSTGIS LAYER::: CREATE TABLE cli_abm (

numregisto int8 NOT NULL, geom geometry, nome_cliente varchar(255), CONSTRAINT pri_cli_abm PRIMARY KEY (numregisto), CONSTRAINT enforce_dims_geom CHECK (ndims(geom) = 2), CONSTRAINT enforce_geotype_geom CHECK (geometrytype(geom) = 'POINT'::text OR geom IS NULL), CONSTRAINT enforce_srid_geom CHECK (srid(geom) = -1)

) WITHOUT OIDS; ALTER TABLE cli_abm OWNER TO postgres;

Attachments (2)

EXAMPLE_01.JPG (71.0 KB ) - added by abiliomagalhaes@… 18 years ago.
EXAMPLE_02.JPG (40.3 KB ) - added by anonymous 18 years ago.

Download all attachments as: .zip

Change History (8)

by abiliomagalhaes@…, 18 years ago

Attachment: EXAMPLE_01.JPG added

by anonymous, 18 years ago

Attachment: EXAMPLE_02.JPG added

comment:1 by g_j_m, 18 years ago

I think that this has been fixed in the latest SVN (#5553) version of Qgis, and is related to ticket #153. We will hopefully have a preliminary release of 0.8 available soon that incorporates this fix.

comment:2 by morb_au, 18 years ago

Milestone: Version 0.8 Release
Owner: changed from gsherman to morb_au
Status: newassigned

I am currently doing some work in subversion HEAD version that should fix this if it hasn't already been fixed. It should be committed in the next few days.

comment:3 by morb_au, 18 years ago

Version: 0.7HEAD

I think I've worked out the "spirit" of this bug, at least with regards to SVN HEAD.

If the attributes are edited via the attributes table, the changes "take" when saved.

If the attributes are edited via the Identify window, the changes do not take.

I will continue to investigate.

comment:4 by morb_au, 18 years ago

Component: DigitisingData Provider

The second method fails because when it commits, it tries to commit all attributes of a changed feature instead of just the changed attributes of that changed feature (which is what the "attributes table" method already does).

In particular, the second "Identify window" method tries to set a Postgres Date type to , which Postgres chokes on and aborts the commit.

A side issue is that the Postgres provider then doesn't report the error, which it should.

comment:5 by morb_au, 18 years ago

Resolution: fixed
Status: assignedclosed

r5694 should fix this, I have put a full writeup on the commit message to r5694.

comment:6 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.