Skip to content

Commit

Permalink
presence: use name of received_time column from associated variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 8729aa8)
  • Loading branch information
miconda committed Apr 1, 2015
1 parent cc1dcba commit 74e136f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/presence/notify.c
Expand Up @@ -601,6 +601,7 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag,
struct sip_uri uri;
unsigned int hash_code;
str sender;
static str query_str;

if(parse_uri(pres_uri.s, pres_uri.len, &uri)< 0)
{
Expand Down Expand Up @@ -656,7 +657,7 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag,
return NULL;
}

static str query_str = str_init("received_time");
query_str = str_received_time_col;
if (pa_dbf.query (pa_db, query_cols, 0, query_vals,
result_cols, n_query_cols, n_result_cols, &query_str , &result) < 0)
{
Expand Down

0 comments on commit 74e136f

Please sign in to comment.