Browse code

presence: more use of variable for received_time column instead of static value

Daniel-Constantin Mierla authored on 26/03/2015 14:51:54
Showing 1 changed files
... ...
@@ -1022,6 +1022,7 @@ char* get_sphere(str* pres_uri)
1022 1022
 	int n_query_cols = 0;
1023 1023
 	struct sip_uri uri;
1024 1024
 	str body;
1025
+	static str query_str;
1025 1026
 
1026 1027
 
1027 1028
 	if(!sphere_enable)
... ...
@@ -1087,7 +1088,7 @@ char* get_sphere(str* pres_uri)
1087 1087
 		return NULL;
1088 1088
 	}
1089 1089
 
1090
-	static str query_str = str_init("received_time");
1090
+	query_str = str_received_time_col;
1091 1091
 	if (pa_dbf.query (pa_db, query_cols, 0, query_vals,
1092 1092
 		 result_cols, n_query_cols, n_result_cols, &query_str ,  &result) < 0) 
1093 1093
 	{