id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 3815,[PATCH] OGR OCI Driver does not set FID column correctly at table define,PeterHalls,warmerdam,"The concept of the FID column, which is also enshrined in the GDAL OGR philosophy, is that this is a 'primary key' in database terms. The OCI driver does not impose constraints on any column, nor does the API support a mechanism by which a constraint can be specified for a column. As OGR_FID, or its alternate name, is intended to be a Primary Key it is desirable that this constraint be specified. The impact of this is to enforce unique values for this column in all tuples, such that this will provide a form of safety-net in the case of multiple simultaneous update. An equivalent level of protection would be provided by setting the UNIQUE constraint, instead of PRIMARY KEY. If this patch is adopted, the proposed patch to ogrocitablelayer to ensure that the value of iNextFIDToWrite is managed properly, or some similar strategy, is essential: it would not be possible to append to a table at all with the existing code otherwise. The attached patch to ogrocidatasource.cpp includes this change, in addition to the author's earlier modification to support tables without geometry.",defect,closed,normal,closed_because_of_github_migration,default,1.6.3,normal,wontfix,,