TUniParam::LoadFromStream doesn't work properly
Posted: Fri 19 Nov 2010 17:14
Hi!
TuniParam is descendent from Dbaccess::TDAParam,
which is descendent from Db::TParam.
Most of the methods/properties of a TuniParam works
as expected when interpreted as it's ancestor
Db::TParam. However, LoadFromStream does not. It
doesn't give any error on itself, but later on when
callling ExecSQL on a TUniQuery, it'll give an access
violation reading address 0x000000.
Suming up:
TUniQuery *qr = ...;
TParam *Param = qr->ParamByName("SomeParam");
std::auto_ptrStream(new TStringStream("dummy blob"));
Stream->Position = 0;
Param->LoadFromStream(S.get(), ftOraBlob);
qr->ExecSQL(); // AV!!!
Any hints?
TuniParam is descendent from Dbaccess::TDAParam,
which is descendent from Db::TParam.
Most of the methods/properties of a TuniParam works
as expected when interpreted as it's ancestor
Db::TParam. However, LoadFromStream does not. It
doesn't give any error on itself, but later on when
callling ExecSQL on a TUniQuery, it'll give an access
violation reading address 0x000000.
Suming up:
TUniQuery *qr = ...;
TParam *Param = qr->ParamByName("SomeParam");
std::auto_ptrStream(new TStringStream("dummy blob"));
Stream->Position = 0;
Param->LoadFromStream(S.get(), ftOraBlob);
qr->ExecSQL(); // AV!!!
Any hints?