<div dir="ltr">Hello Daniel,<div><br></div><div>Result of command kamailio -v</div><div><br></div><div>version: kamailio 4.3.1 (x86_64/linux) f38e67-dirty<br></div><div><div>flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</div><div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div><div>id: f38e67 -dirty</div><div>compiled on 15:56:29 Jul 20 2015 with gcc 4.4.7</div></div><div><br></div><div>Thank you for your support</div><div><br></div><div>BR</div><div>José Seabra</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-20 16:58 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
the names of columns should be quoted in order to be safe against<br>
reserved keywords.<br>
<br>
What is the exact version you are using (kamailio -v)?<br>
<br>
Cheers,<br>
Daniel<br>
<span class=""><br>
On 20/07/15 17:37, José Seabra wrote:<br>
> Hello Daniel,<br>
><br>
> After update my kamailio to version 4.3 and change the table location<br>
> as required in migration process, kamailio start giving some errors:<br>
><br>
> [root@ccp1 kamailio]# 35(7637) ERROR: db_mysql [km_dbase.c:121]:<br>
> db_mysql_submit_query(): driver error on query: Unknown column<br>
> 'partition' in 'where clause'<br>
> 35(7637) ERROR: <core> [db_query.c:132]: db_do_query_internal(): error<br>
> while submitting query<br>
><br>
> that's is because the column name "partition" is reserved word<br>
</span>> (<a href="http://dev.mysql.com/doc/refman/5.6/en/keywords.html" rel="noreferrer" target="_blank">http://dev.mysql.com/doc/refman/5.6/en/keywords.html</a>) in mysql<br>
<div class="HOEnZb"><div class="h5">> ndbcluster engine, so what i did to fix this issue was add a new<br>
> modparam in<br>
> modules/usrloc/ul_mod.c file:<br>
><br>
> {"partition_col",       PARAM_STR, &partition_col},<br>
><br>
><br>
> with this i can configure what name i want for this column in kamailio<br>
> module configuration and configure a diferent column name in  table<br>
> location(ex: modparam("usrloc", "partition_col", "partitionusrloc") ),<br>
>  Can you please check out if what i did is the correct way to fix it,<br>
> in order to avoid damage something else.<br>
><br>
> Best regards<br>
> --<br>
> Cumprimentos<br>
> José Seabra<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div>