Hi,
I just created a branch with the goal of improving the handling of
different integer types.
https://github.com/juliantaylor/soci/tree/inttypes

The main change is replacement of the pre C99 integer types (short, int,
long, long long) with the C99 types [u]intN_t.
This is a very invasive change, modifying also the public api by
renaming dt_integer etc. to dt_[u]intN but it removes some ambiguity
e.g. with the long type which is 64 bit in gcc and 32 bit in windows.
My opinion is that this makes everything more transparent and simplifies
cross-plattform support. But the as the change is rather large it may
not be very well suited for a release in near future.

Currently it only works with compilers which support stdint.h and
inttypes.h in C++ (e.g. gcc) and only the mysql backend compiles.

In the process I (hopefully) fixed the dynamic binding of 64 bit
unsigned types in the mysql backend reported by NeDark.
Also a bunch of new tests have been added (and the old tests still
pass).

Next I'll change the sqlite3 backend (possibly with Sylvain's patch for
non-vector queries) and look into handling the unsupported 64 bit
unsigned type of this backend.

Any comments and tests are highly appreciated.

Best Regards,
Julian Taylor

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to