From: jiyong.min Date: Thu, 16 Jan 2020 00:38:19 +0000 (+0900) Subject: Change select query of __mc_db_get_record due to wrong result X-Git-Tag: accepted/tizen/unified/20200117.120814^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a138c4535120fa5625dcced6a909ab34dc2066af;p=platform%2Fcore%2Fapi%2Fmedia-controller.git Change select query of __mc_db_get_record due to wrong result Change-Id: I82faa60ab52ec8757a92bd7989a1bbc7a80f9578 --- diff --git a/src/media_controller_db.c b/src/media_controller_db.c index 9950c56..81ba3ad 100644 --- a/src/media_controller_db.c +++ b/src/media_controller_db.c @@ -62,7 +62,7 @@ static int __mc_db_get_int_value(sqlite3 *handle, const char *server_name, const mc_retvm_if(!column, MEDIA_CONTROLLER_ERROR_INVALID_OPERATION, "Invalid column"); mc_retvm_if(!value, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "Invalid value"); - sql_str = sqlite3_mprintf("SELECT %Q FROM %q WHERE name=%Q", column, MC_DB_TABLE_SERVER_INFO, server_name); + sql_str = sqlite3_mprintf("SELECT %q FROM %q WHERE name=%Q", column, MC_DB_TABLE_SERVER_INFO, server_name); ret = __mc_db_get_record(handle, sql_str, &stmt); mc_retvm_if(ret != MEDIA_CONTROLLER_ERROR_NONE, MEDIA_CONTROLLER_ERROR_INVALID_OPERATION, "__mc_db_get_record failed [%d]", ret);