Chris Morgan wrote:
> I'd vote for using the C99 defines.
Thanks for the moral support. :)
> does this preclude using 'long long'?
No, that's handled through MySQL++'s ulonglong and longlong types now.
(If we go with the stdint.h patch, these would perhaps go away in favor
of int64_t and uint64_t, but that depends on what the various platforms
have in their stdint.h. So far, I've only looked at glibc on CentOS 5.
We might have to keep these typedefs.)
Basically, you run into trouble when the type you want to use isn't in
mysql_type_info::types, a static array defined at the top of
lib/type_info.cpp. More precisely, it supports the types you see there,
plus anything we typedef against in lib/sql_types.h. So for example,
std::string is supported, because we use that for sql_mediumtext.