On 13.01.2010 0:57, Maciej Sobczak wrote:
>> I even can implement such a feature.
>
> Please note that it is not straightforward. The reason is that the SQL
> type system does not map 1:1 into the C++ type system.
Lets see...
> There are two approaches to solve this: one is to arbitrarily invent
> some mapping and the other is to map only a subset of the types. It is
> the latter approach that is currently implemented.
You already implement int and short. What is the difference in unsigned int
and signed int? It is
semantical and there is no difference in data representation. SQL doesn't have
unsigned
representation, but all signed maps to unsigned directly without any data loss.
So, why we cannot
map C++ unsigned int to SQL INTEGER and C++ unsigned short to SQL SHORT?
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users