On 08/12/10 11:01, Henning Basold wrote: > Am 08.12.2010 09:48, schrieb Maciej Sobczak: >> On 08/12/2010 00:59, Jeff Garland wrote: >> >>> We have some queries that need to support tables with more than 10 >>> columns. Has anyone hacked the boost-fusion.h file to support more than >>> 10 column result sets? Note that after some looking boost-tuple simply >>> can't support more than 10. >> >> This is a limitation of Boost, not SOCI. :-) >> >>> Is there some other way to solve this issue >>> in soci? >> >> What about using regular SOCI interface? > > > attached is a patch that enables the fusion adaption to be configured to > support longer fusion sequences. It depends on Boost.Preprocessor and > introduces a macro SOCI_MAX_FUSION_SEQUENCE_LENGTH which defaults to 10. > This macro determines the maximum length of supported fusion sequences. > > With this you can increase FUSION_MAX_VECTOR_SIZE and this to use more > columns. > > As this patch depends on Boost.Preprocessor and may increase compile > times, I don't know if it will be incorporated into the repository.
Hi Henning, Thanks for the patch. I have decided to apply it to the repository because as far as I see it is not intrusive and it should not affect other users. It's neat and makes the relevant code shorter. http://soci.git.sourceforge.net/git/gitweb.cgi?p=soci/soci;a=commit;h=f624c2e763f43aa604eb2f9daee17a3034b8e1c1 However, if anyone finds it a troublemaker, please speak up. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
