debea-users group is inactive since long, I tried to post this topic there, but had no luck. What's up with debea? It looks like a great piece of code and wxWidgets sponsors it as a replacement for wxODBC (see http://wiki.wxwidgets.org/ODBC). How comes I seem to be the only active debea user? Is it becouse ODBC is dead meat? C'mon ODBC isn't that bad!
Does anybody know if there's any active debea forum??
Anyway, please let me try to ask here... I could have found a bug, but I'm not sure... I'd like to ask advice to someone who's expert on debea library or in C++ in general . sqlarchive.cpp has the following code:
Code: Select all
SQLIStream
SQLArchive::getIStream() {
DbConnection* conn = getFreeConnection();
SQLIStream stream(conn,&mFilterMapper);
return stream;
};
OStream*
SQLArchive::getOutputStream() {
DbConnection* conn = getFreeConnection();
SQLOStream* stream = new SQLOStream(conn,mFetcher,&mFilterMapper);
return stream;
};
Code: Select all
RSetData::RSetData(const dba::SQLIStream& pStream, Store *RSet, wxString tabName)
: dba::SQLIStream(pStream)
{
int j = 0;
mapList mapRow;
dba::Stream::open(*RSet, tabName);
...
}
My hypothesis is that if I would have got a pointer from SQLArchive::getIStream() , everything would have been well since I would have got distinct instances of the IStream. what do you say, am I right or just a daydreamer?
BR,
Max.