Ticket #178 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

PostGIS : Can't insert in a non-feature class

Reported by: bscott Assigned to: mloskot
Priority: blocker Milestone: 3.4.0
Component: PostGIS Provider Version: 3.2.0
Severity: 1 Keywords:
Cc: External ID:

Description (Last modified by mloskot)

In the PostGis? provider it is not possible to insert in a non-feature class . The provider search first for the classdefinition in the "schemaDesc" And the schemadesc is only filled with the values from the postgis geometry_columns table.

Here is the piece of code that make that call failed:

FdoIFeatureReader* InsertCommand::Execute()
{ 
   ... 

    FdoPtr<FdoClassDefinition> classDef(schemaDesc->FindClassDefinition(mClassIdentifier)); 
    if (!classDef) 
    { 
      throw FdoCommandException::Create(L"[PostGIS] InsertCommand can not 
find class definition"); 
    } 

   ... 
} 

Orest Halustchak wrote: FdoIInsert is supposed to work on non-feature classes as well. There is no separate insert command for these.

Change History

03/03/08 10:45:54 changed by gregboone

  • milestone changed from 3.3.0 to 3.3.1.

04/19/08 06:32:11 changed by mloskot

Patch submitted for review as #318

04/21/08 13:44:26 changed by mloskot

  • status changed from new to assigned.
  • description changed.

04/21/08 13:44:43 changed by mloskot

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in trunk (r3904) with patch from Bruno Scott. I'm closing it as fixed. Please, reopen if something is still not working well.