get property type using property_id 59/47859/1
authorGukhwan Cho <gh78.cho@samsung.com>
Wed, 9 Sep 2015 03:04:37 +0000 (12:04 +0900)
committerGukhwan Cho <gh78.cho@samsung.com>
Wed, 9 Sep 2015 11:03:03 +0000 (20:03 +0900)
Change-Id: I69b129710e7170d5ea26f166cdfb6f848884b2f9
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
server/db/ctsvc_db_query.c

index 80950b7..18dba19 100644 (file)
@@ -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)