You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2011/01/30 11:33:47 UTC

DO NOT REPLY [Bug 50690] New: apr dbd oracle driver does not work under AIX/ppc and Solaris/sparc

https://issues.apache.org/bugzilla/show_bug.cgi?id=50690

           Summary: apr dbd oracle driver does not work under AIX/ppc and
                    Solaris/sparc
           Product: APR
           Version: 1.3.9
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: sr@myarm.com


Created an attachment (id=26577)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26577)
changed OCIAttrGet(OCI_ATTR_STMT_TYPE) output parameter from int to
apr_int16_t.

The apr dbd oracle driver works fine under Linux/x86, Solaris/x86 and Windows
x86. However under AIX/ppc and Solaris/sparc the check connection select fails.
Oracle returns the error "ORA-24374: define not done before fetch or execute
and fetch".

This bug is caused by an inproper use of OCIAttrGet(OCI_ATTR_STMT_TYPE). The
out parameter for the statement type should be an 16-bit integer, but its
currently just an int (normally 32-bit). Under x86 systems the correct type is
returned and the following if() statement is executed:

if (stmt->type == OCI_STMT_SELECT) {
    ret = outputParams(sql, stmt);
}

But under ppc or sparc (big-endian) the returned statement type is wrong and
therefore outputParams() is not called which will result in the ORA-24374 when
trying to fetch the result of the SELECT.

The attached patch uses an apr_int16_t variable to retrieve the statement type
and it works find under AIX.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


DO NOT REPLY [Bug 50690] apr dbd oracle driver does not work under AIX/ppc and Solaris/sparc

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50690

Jeff Trawick <tr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Jeff Trawick <tr...@apache.org> 2011-04-08 07:54:02 EDT ---
fixed in apr-util 1.3.x branch, soon to have a new release

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


DO NOT REPLY [Bug 50690] apr dbd oracle driver does not work under AIX/ppc and Solaris/sparc

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50690

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #1 from Nick Kew <ni...@webthing.com> 2011-01-30 07:53:19 EST ---
Fixed in trunk in r1065258 .
Will leave time for someone to scream if necessary before backporting!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org