From 41d530a7727ab9603ddf7ee396b56fc3232c1555 Mon Sep 17 00:00:00 2001 From: Gukhwan Cho Date: Wed, 9 Sep 2015 12:04:37 +0900 Subject: [PATCH] get property type using property_id Change-Id: I69b129710e7170d5ea26f166cdfb6f848884b2f9 Signed-off-by: Gukhwan Cho --- server/db/ctsvc_db_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/db/ctsvc_db_query.c b/server/db/ctsvc_db_query.c index 80950b7..18dba19 100644 --- a/server/db/ctsvc_db_query.c +++ b/server/db/ctsvc_db_query.c @@ -2389,7 +2389,7 @@ static inline int __ctsvc_db_search_records_with_query_exec(ctsvc_query_s *s_que else property_id = s_query->projection[i]; - type = __ctsvc_db_get_property_type(s_query->properties, s_query->property_count, s_query->projection[i]); + type = __ctsvc_db_get_property_type(s_query->properties, s_query->property_count, property_id); if (type == CTSVC_VIEW_DATA_TYPE_INT) ctsvc_record_set_int(record,property_id, ctsvc_stmt_get_int(stmt, i)); else if (type == CTSVC_VIEW_DATA_TYPE_STR) -- 2.7.4