[Fdo-trac] [fdo-trac] #649: KingOracle Provider doesn’t work in Linux
FDO
trac_fdo at osgeo.org
Fri Jan 11 05:35:50 PST 2019
#649: KingOracle Provider doesn’t work in Linux
-----------------------------------+----------------------
Reporter: rafael | Owner: haris
Type: defect | Status: closed
Priority: blocker | Milestone: 3.5.0
Component: FDO API | Version: 3.5.0
Severity: 3 | Resolution: fixed
Keywords: Oracle FDO King Linux | External ID:
-----------------------------------+----------------------
Changes (by jng):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7812" 7812]:
{{{
#!CommitTicketReference repository="" revision="7812"
Merged revision(s) 7766-7811 from sandbox/kgoralinux:
Get King Oracle provider working on Linux. The root cause of why this
provider did not work on Linux in the past is due to:
a) wchar_t strings being garbage on Linux due to difference in platform
size. Where wchar_t* strings are passed to OCI on Windows, they are now
#ifdef'd (D_OCI_WIDE_STRINGS) on Linux to pass char* strings instead
b) Possibly the use of OCINlsEnvCreate and OCILogon
- I could not find a suitable OCI reference code on Linux that
demonstrated the use of these 2 APIs.
- So taking a page out of known OCI reference code (the OGR OCI
driver), the provider uses OCIEnvCreate and OCIServerAttach on Linux for
OCI setup and connection.
This is backed by a new reproducible test suite that runs a basic set of
provider test against an Oracle XE 11g instance. An 11g docker environment
is provided to easily spin up such an environment.
Fixes #649, #562
}}}
--
Ticket URL: <https://trac.osgeo.org/fdo/ticket/649#comment:2>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list