Hey,

We do not map 'unsigned types' to database types, simply because databases
usually only support signed types. The question becomes: what should
Wt::Dbo do when it reads a value of -1 from the database ? How should it
map this back to an unsigned type ?

You can implement sql_value_traits<unsigned> if you want (using the
connection's support for signed types) but then you'll need to handle this
case.

Regards,
koen


2013/2/27 Алексей <hudyaev.al...@gmail.com>

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hello.
> Great project!
> I have found a missing functionality :)
> Always I use "unsigned int" for holding ID from any tables.
> So, usual it's something like this "typedef unsigned int id_type".
>
> But, It seems there is no "field" function specialization for "unsigned
> int", and I don't know how I can add this function (may be convert to
> signed int or to std::string?)
>
> - --
> С уважением Худяев Алексей.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with undefined - http://www.enigmail.net/
>
> iF4EAREIAAYFAlEuL34ACgkQDt/suh+PiXMPuQEAlizfh0lQB3NZJ4DmOhWaTeFr
> D7EGYWQhn+Pw8FatmPABAIzEp3Vwkk+ts057TWy3gxoIaZKjU3u9UrIJkSzz5O7j
> =LjPb
> -----END PGP SIGNATURE-----
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to