Commit 4d08cf67 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Fix typo

parent e85ce900
...@@ -1499,15 +1499,15 @@ void udr_app::handle_query_sm_data(const std::string &ue_id, ...@@ -1499,15 +1499,15 @@ void udr_app::handle_query_sm_data(const std::string &ue_id,
SessionManagementSubscriptionData sessionmanagementsubscriptiondata = {}; SessionManagementSubscriptionData sessionmanagementsubscriptiondata = {};
std::string query = std::string query =
"select * from SessionManagementSubscriptionData WHERE ueid='" + ue_id + "select * from SessionManagementSubscriptionData WHERE ueid='" + ue_id +
"' and servingPlmnid='" + serving_plmn_id + "'"; "' and servingPlmnid='" + serving_plmn_id + "' ";
std::string option_str = {}; std::string option_str = {};
if (snssai.getSst() > 0) { if (snssai.getSst() > 0) {
option_str += option_str += " and JSON_EXTRACT(singleNssai, \"$.sst\")=" +
"and JSON_EXTRACT(singleNssai, \"$.sst\") =" + snssai.getSst(); std::to_string(snssai.getSst());
} }
if (!dnn.empty()) { if (!dnn.empty()) {
option_str += option_str +=
"and JSON_EXTRACT(dnnConfigurations, \"$." + dnn + ") IS NOT NULL"; " and JSON_EXTRACT(dnnConfigurations, \"$." + dnn + "\") IS NOT NULL";
} }
query += option_str; query += option_str;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment