Funny typo in SqlCompile; improved diagnostics of so load failure in Linux (Dli.cpp); improved connection failure diagnostics in OCI8

git-svn-id: svn://ultimatepp.org/upp/trunk@1642 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2009-10-20 09:55:03 +00:00
parent c6a4eee54a
commit b1bb783874
4 changed files with 16 additions and 14 deletions

View file

@ -4,7 +4,7 @@
NAMESPACE_UPP
#define LLOG(x) // LLOG(x)
#define LLOG(x) RLOG(x)
//#define DLLFILENAME "ora803.dll"
#define DLLFILENAME "oci.dll"
@ -35,13 +35,13 @@ static String OciError(T_OCI8& oci8, OCIError *errhp, int *code)
}
bool Oracle8::AllocOciHandle(void *hp, int type) {
LLOG("AllocOciHandle(" << type << "), envhp = " << envhp);
LLOG("AllocOciHandle(type " << type << "), envhp = " << FormatIntHex(envhp));
*(dvoid **)hp = NULL;
return oci8 && !oci8.OCIHandleAlloc(envhp, (dvoid **)hp, type, 0, NULL);
}
void Oracle8::FreeOciHandle(void *hp, int type) {
LLOG("FreeOciHandle(" << type << ")");
LLOG("FreeOciHandle(" << FormatIntHex(hp) << ", type " << type << ")");
if(oci8 && hp) oci8.OCIHandleFree(hp, type);
}