Page 1 of 1

TORASession.OracleVersion - Workaround override?

Posted: Thu 26 Jun 2008 14:29
by stevek42
A Delphi programmer that created software for us is unavailable for a few months, but we're having an immediate problem with the code and I'm trying to devise a workaround.

There are several places in the code where he checks for the OracleVersion variable of a session to be 10.1.*, but I want it to work with 10.2 as well (there should be no problems other than the hard-coded check).

I can't recompile because of all the extra objects he uses in the code. I'm wondering where OracleVersion comes from in a session with TORASession? Is it possible to fake this value?

Thank you for your time!

Posted: Fri 27 Jun 2008 12:56
by Challenger
ODAC uses the OCIServerVersion function to detect the server version. You can create a wrapper of OCI.dll and return the required value. But we do not guarentee that ODAC will work properly in this situation.