12.03.2014 14:01, Alex Peshkoff wrote:
> It's easy to add new fields to XSQLDA, but adding something to XSQLVAR
> is much harder because there is an array of this structures in the end
> of XSQLDA. From user POV this looks fine, but inside firebird library we
> get nightmare.

   No, not at all. Or may be I don't see something...
   Merging changes in why.cpp which are conflicting with the patch I prepared 
last week - 
that was nightmare.

> Yes provided it's enough.
> Assignment of many pointers is often slower than copying memory region.

   But why one would like to assign many pointers?
   If to take for given that buffer is a class with unknown internal structure, 
then it is 
enough to assign a pointer to it if your code is going to use only buffer's 
official 
interface or create a new buffer of suitable structure and copy all data into 
it, letting 
original buffer go.
   There is no need to force your code (engine) to work with any kind of buffer 
or return 
a buffer with any user's format. Engine can return its buffers in own format 
and then it 
is up to user - work with them as via official interface is or to convert it 
into 
something more suitable.


-- 
   WBR, SD.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to