Hey Graeme, 2011/11/30 Graeme Gill <grae...@argyllcms.com>: > In extending the Dbo build in types to custom types, I've found > it convenient to add a building block void * blob type, to > make it straightforward to implement fixed sized elements, > rather than using the std::vector<unsigned char> which > I found a bit clumsy for this purpose.
Ah, I was trying to understand how the size would work until I realized it is for fixed-sized elements! > Attached is a patch for the added void * type. (Note that > the size parameter is needed set the blob size correctly in > statement->bind().) Would it be acceptable (for your use-case) to implement the sql_value_traits<> specializations to convert between a std::vector<> and void * so that the back-end interface (SqlStatement *) is not affected ? Or is the extra copy something that would hurt performance ? Regards, koen ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest