On 22/11/10 09:46, Jack Strom wrote:
> I noticed that in the current git version of soci, there is support for most 
> unsigned types, with the exception of unsigned long long. This is a real 
> problem 
> on 32bit platforms where "unsigned long" defaults to 32bit. With Microsoft 
> compilers, unsigned long, even on 64bit, is only 32bits wide. I'd love to fix 
> this myself, but it looks like it'll need an additional base type, which I'm 
> not 
> too sure about adding on.
>
> Please let me know if this will be added on, or how to do so myself, or such.

I've just committed experimental support of unsigned long long in
core and postgresql backend

http://soci.git.sourceforge.net/git/gitweb.cgi?p=soci/soci;a=commit;h=e5d8124e73255873364bca272c2a93396e916a71

I've tested it with PostgreSQL and it works well.
If you are using different backend like MySQL or SQLite3, you may
simply follow the changes I've applied to src/backends/postgresql
If you are willing to do it, test it and submit a patch, it will be
appreciated.

In any case, I'd like to update other backends to support the unsigned
long long, but the testing on all platforms will be quite time consuming.

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

Reply via email to