提交 e36b47cb authored 作者: Mathieu Rene's avatar Mathieu Rene

mod_limit: use = instead of like

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16020 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ee6801a4
......@@ -723,7 +723,7 @@ static switch_bool_t do_limit(switch_core_session_t *session, const char *realm,
cbt.buf = buf;
cbt.len = sizeof(buf);
sql = switch_mprintf("select count(hostname) from limit_data where realm='%q' and id like '%q'", realm, id);
sql = switch_mprintf("select count(hostname) from limit_data where realm='%q' and id='%q'", realm, id);
limit_execute_sql_callback(NULL, sql, sql2str_callback, &cbt);
switch_safe_free(sql);
got = atoi(buf);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论