<p dir="ltr">Here [1] is an example, where the same query may have been executed only once using IN</p>
<p dir="ltr">[1] <a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_fifo/mod_fifo.c#1671">https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_fifo/mod_fifo.c#1671</a></p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 3, 2017, 6:06 PM Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">I don&#39;t think we have such a thing.<div class="gmail_msg">Can you give an example of using the theoretical function so I can understand better?</div><div class="gmail_msg"><br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On Tue, Jan 3, 2017 at 2:24 PM, Podrigal, Aron <span dir="ltr" class="gmail_msg">&lt;<a href="mailto:aronp@guaranteedplus.com" class="gmail_msg" target="_blank">aronp@guaranteedplus.com</a>&gt;</span> wrote:<br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I would like to know if there exists any code that would solve constructing a SQL IN query.</div><div class="gmail_msg">If not, I would like to contribute one. </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I think of implementing something ie `switch_sqlinmprintf` which would call `base_vprintf` with a callback accepting an array of char * and formatting them with &#39;%Q&#39; specifier.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I would greatly appreciate any help or pointers on function names implementation... <span class="m_-2603295221933091322HOEnZb gmail_msg"><font color="#888888" class="gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div>-- <br class="gmail_msg"><div class="m_-2603295221933091322m_2525616655603229596gmail_signature gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div dir="ltr" class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg">-</div><div class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg">Aron Podrigal</span><br class="gmail_msg"></div><div class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"><br class="gmail_msg"></span></div></div></div></div></div></div>
</font></span></div></div>
<br class="gmail_msg"></blockquote></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://wiki.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://wiki.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-dev mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<br class="gmail_msg"></blockquote></div><br class="gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div>-- <br class="gmail_msg"><div class="m_-2603295221933091322gmail_signature gmail_msg" data-smartmail="gmail_signature"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg">☞ <a href="http://freeswitch.org/" class="gmail_msg" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" class="gmail_msg" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" class="gmail_msg" target="_blank">http://twitter.com/FreeSWITCH</a></div><div class="gmail_msg"><div class="gmail_msg">☞ <a href="http://irc.freenode.net" class="gmail_msg" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u class="gmail_msg"><a href="http://freeswitch.org/g+" class="gmail_msg" target="_blank">http://freeswitch.org/g+</a></u><br class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">ClueCon Weekly Development Call <br class="gmail_msg"></div><div class="gmail_msg">☎ <a href="mailto:sip%3A888@conference.freeswitch.org" class="gmail_msg" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div class="gmail_msg"><br class="gmail_msg"></div></div></div><div class="gmail_msg"><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" class="gmail_msg" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div class="gmail_msg"><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" class="gmail_msg" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br class="gmail_msg"></div></div></div></div></div></div></div>
</div>
_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://wiki.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://wiki.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-dev mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
</blockquote></div>