Browse Source

presence: use name of received_time column from associated variable

Daniel-Constantin Mierla 10 năm trước cách đây
mục cha
commit
8729aa8cde
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      modules/presence/notify.c

+ 2 - 1
modules/presence/notify.c

@@ -596,6 +596,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)
 	{
@@ -651,7 +652,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) 
 	{