Ticket #4161 (closed defect: fixed)

Opened 23 months ago

Last modified 11 months ago

[PATCH] OGR OCI: Error in retrieving table dimension

Reported by: nicsim Owned by: warmerdam
Priority: normal Milestone: 1.8.1
Component: OGR_SF Version: unspecified
Severity: normal Keywords: OGR OCI
Cc:

Description

When doing ogrinfo on an oracle database with tables in a schema different that the user, we get the following error message:

ogrinfo OCI:USER/PWD@DSPTW

ERROR 1: ORA-00942: table or view does not exist

in SELECT a.GEOM.GET_DIMS() DIM FROM SIG_PENTE_SUP10 a WHERE ROWNUM = 1

ERROR 1: ORA-24374: define not done before fetch or execute and fetch

in OCIStmtFetch

This is due by the fact that the table name (SIG_PENTE_SUP10 in my case) is not prefixed with the schema owner.

This could by easily corrected with provided patches

Nicolas Simon

Attachments

ogrocitablelayer_branch18.patch Download (0.5 KB) - added by nicsim 23 months ago.
Patch for 1.8 branch
ogrocitablelayer_trunk.patch Download (0.5 KB) - added by nicsim 23 months ago.
Patch for trunk
ogrocitablelayer_trunk.2.patch Download (0.5 KB) - added by nicsim 23 months ago.
Patch for trunk

Change History

Changed 23 months ago by nicsim

Patch for 1.8 branch

Changed 23 months ago by nicsim

Patch for trunk

Changed 23 months ago by nicsim

Patch for trunk

Changed 22 months ago by rouault

  • component changed from default to OGR_SF
  • summary changed from OGR OCI: Error in retrieving table dimension to [PATCH] OGR OCI: Error in retrieving table dimension

Changed 11 months ago by nicsim

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.