Browse code

presence: use name of received_time column from associated variable

Daniel-Constantin Mierla authored on 26/03/2015 14:48:09
Showing 1 changed files
... ...
@@ -596,6 +596,7 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag,
596 596
 	struct sip_uri uri;
597 597
 	unsigned int hash_code;
598 598
 	str sender;
599
+	static str query_str;
599 600
 
600 601
 	if(parse_uri(pres_uri.s, pres_uri.len, &uri)< 0)
601 602
 	{
... ...
@@ -651,7 +652,7 @@ str* get_p_notify_body(str pres_uri, pres_ev_t* event, str* etag,
651 651
 		return NULL;
652 652
 	}
653 653
 
654
-	static str query_str = str_init("received_time");
654
+	query_str = str_received_time_col;
655 655
 	if (pa_dbf.query (pa_db, query_cols, 0, query_vals,
656 656
 		 result_cols, n_query_cols, n_result_cols, &query_str ,  &result) < 0) 
657 657
 	{