<div dir="ltr">One solution would be to change the id container inside the module from int to str.<div>For most common databases, the id will be an int that will be converted into a str and stored as a str.</div><div>For mongo, the id is retrieved as an ObjectId and it is converted and presented to the upper module as str, so storing it as a str would be 'native'.</div>
<div><br></div><div>This requires changes in all the modules that are explicitly using the primay key 'id'.</div><div>On the other hand, there are only a few modules that require explicit access to 'id'.</div>
<div><br></div><div>For now, this is the only solution that I can think of.</div><div><br></div><div>-ovidiu</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 27, 2014 at 2:21 PM, Bogdan Andrei IANCU <span dir="ltr"><<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><p><a href="https://github.com/ovidiusas" target="_blank">@ovidiusas</a> - unfortunately not only the drouting module is affected by this problem - there are other modules using the "id" primary key (even storing it) - so I would rather look for a global solutions on this. Do you have any suggestions ?</p>
</div><p style="font-size:small;color:#666">—</p><div class=""><br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/173#issuecomment-38841578" target="_blank">view it on GitHub</a>.<img src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMTU2MzY2NCwiZGF0YSI6eyJpZCI6MjY5MjExNTh9fQ==--0ebc18d1e84fc9ba361cc3e9d26a94eee145ab0c.gif" height="1" width="1"></div>
<p></p><br>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>VoIP Embedded, Inc.<br><a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a>
</div>