[gdal-dev] ogr2ogr with ORACLE driver: limitation on table name size?

Ivan Lucena ivan.lucena at outlook.com
Tue Sep 15 07:51:19 PDT 2020


You are correct.

As you can see in the code above those lines is that it is possible to run in debugging mode to check if the call to OCIServerVersion is been parsed correctly.

Best regards,

From: Even Rouault <even.rouault at spatialys.com>
Sent: Tuesday, September 15, 2020 10:33 AM
To: gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>
Cc: Ivan Lucena <ivan.lucena at outlook.com>; Victoria Ponz-Sarvise <vponz-sarvise at forsk.com>
Subject: Re: [gdal-dev] ogr2ogr with ORACLE driver: limitation on table name size?


> https://github.com/OSGeo/gdal/blob/70a2ec1795c3e01aeaf1ac3c0f7c69a3f0fa2ca5/

> gdal/ogr/ogrsf_frmts/oci/ogrocisession.cpp#L316

The logic

if( nServerVersion >= 12 && nServerRelease >= 2 )

looks wrong to me. It will not work for 13.0 for example

Shouldn't that be

if( nServerVersion > 12 || (nServerVersion == 12 && nServerRelease >= 2) )


That said that doesn't explain issues with 12.2



Spatialys - Geospatial professional services

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200915/a0428eb5/attachment-0001.html>

More information about the gdal-dev mailing list