mod_limit: use = instead of like
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16020 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ee6801a428
commit
e36b47cbc3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue