[Serusers] unsigned ints from database
Juha Heinanen
jh at lohi.tutpro.com
Thu Feb 17 23:17:58 CET 2005
i "solved" the unsigned int db problem by the following change in
modules/mysql/val.c, function str2int:
replace line
*_v = atoi(_s);
with
*_v = (int)atoll(_s);
it namely turned out that atoi does not work with large unsigned ints.
jan, since you seem to be the author of mysql module, could you commit
the above change? it should not cause any trouble for signed ints, but
of course using atoll must be somewhat slower than atoi.
the other option i guess is to add unsigned int as a new datatype to ser
db interface, which would be lot of work.
-- juha
More information about the sr-users
mailing list