On Fri, 2006-02-24 at 10:44 +0100, Marc Herbert wrote:
> >> Just one question ... what will happen with getResultSet() when
> >> lastResultPtr is null?
> >
Also I hope, you took into consideration that this way you will have to
write a copy constructor for DriverResultSet which will duplicate the
pointers correctly in that class. With the default copyconstructor will
segfault.
Just a simple example:
{ DriverResultSet drs = xy.getResultSet(); <-- copy constructor
}
//drs will be destroyed at this point => destructor will be called,
pointers like data and fields will be destructed.
a call again to the same xy.getResultSet() later in the code will lead
to segfault if the DriverResultSet copy constructor is not implemented.
Also duplicating large DriverResultSet takes a long time ....
_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob