Allow 'type' field in domain_attrs to be a DB1_BIGINT as well as a DB1_INT. If you are using a view with 'type' as a calculated field on a 64 bit machine, then mysql will return the type of 'type' to be a bigint, not an int (and no amount of CASTing or CONVERTing will fix it). You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/182
-- Commit Summary --
* Allow 'type' field in domain_attrs to be a DB1_BIGINT as well as a
-- File Changes --
M modules/domain/domain.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/182.patch https://github.com/kamailio/kamailio/pull/182.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/182
Closed #182.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/182#event-335032104
Thanks for the submission. At the end I applied a patch with explicit casting of the big int value to be safe on all architecture.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/182#issuecomment-113435167