diff --git a/zh-cn/distributeddatamgr/relational_store/include/oh_cursor.h b/zh-cn/distributeddatamgr/relational_store/include/oh_cursor.h index 2a7a882f3..894078ef8 100644 --- a/zh-cn/distributeddatamgr/relational_store/include/oh_cursor.h +++ b/zh-cn/distributeddatamgr/relational_store/include/oh_cursor.h @@ -59,7 +59,7 @@ typedef struct OH_Cursor OH_Cursor; * * @since 10 */ -struct OH_Cursor { +typedef struct OH_Cursor { /** * OH_Cursor结构体的唯一标识符。 */ diff --git a/zh-cn/distributeddatamgr/relational_store/include/oh_predicates.h b/zh-cn/distributeddatamgr/relational_store/include/oh_predicates.h index c8628c300..b724a566d 100644 --- a/zh-cn/distributeddatamgr/relational_store/include/oh_predicates.h +++ b/zh-cn/distributeddatamgr/relational_store/include/oh_predicates.h @@ -75,7 +75,7 @@ typedef struct OH_Predicates OH_Predicates; * * @since 10 */ -struct OH_Predicates { +typedef struct OH_Predicates { /** * OH_Predicates结构体的唯一标识符。 */ diff --git a/zh-cn/distributeddatamgr/relational_store/include/oh_rdb_transaction.h b/zh-cn/distributeddatamgr/relational_store/include/oh_rdb_transaction.h index 58632679b..730e45ae9 100644 --- a/zh-cn/distributeddatamgr/relational_store/include/oh_rdb_transaction.h +++ b/zh-cn/distributeddatamgr/relational_store/include/oh_rdb_transaction.h @@ -359,8 +359,8 @@ OH_Cursor *OH_RdbTrans_Query(OH_Rdb_Transaction *trans, const OH_Predicates *pre * @return 如果执行成功,则返回指向{@link OH_Cursor}实例的指针。如果数据库已关闭或数据库没有响应,则返回nullptr。 * @since 23 */ -OH_Cursor *OH_RdbTrans_QueryWithoutRowCount(OH_Rdb_Transaction *trans, const OH_Predicates *predicates, const char * const columns[], - int len); +OH_Cursor *OH_RdbTrans_QueryWithoutRowCount(OH_Rdb_Transaction *trans, const OH_Predicates *predicates, + const char *const columns[], int len); /** * @brief 根据SQL语句查询数据库中的数据。 diff --git a/zh-cn/distributeddatamgr/relational_store/include/oh_value_object.h b/zh-cn/distributeddatamgr/relational_store/include/oh_value_object.h index 6b177b050..0d5aca04a 100644 --- a/zh-cn/distributeddatamgr/relational_store/include/oh_value_object.h +++ b/zh-cn/distributeddatamgr/relational_store/include/oh_value_object.h @@ -56,7 +56,7 @@ typedef struct OH_VObject OH_VObject; * * @since 10 */ -struct OH_VObject { +typedef struct OH_VObject { /** * OH_VObject结构体的唯一标识符。 */ diff --git a/zh-cn/distributeddatamgr/relational_store/include/oh_values_bucket.h b/zh-cn/distributeddatamgr/relational_store/include/oh_values_bucket.h index b4224971b..5f8603d69 100644 --- a/zh-cn/distributeddatamgr/relational_store/include/oh_values_bucket.h +++ b/zh-cn/distributeddatamgr/relational_store/include/oh_values_bucket.h @@ -57,7 +57,7 @@ typedef struct OH_VBucket OH_VBucket; * * @since 10 */ -struct OH_VBucket { +typedef struct OH_VBucket { /** * OH_VBucket结构体的唯一标识符。 */ diff --git a/zh-cn/distributeddatamgr/relational_store/include/relational_store.h b/zh-cn/distributeddatamgr/relational_store/include/relational_store.h index e348bfe4b..00ccdd977 100644 --- a/zh-cn/distributeddatamgr/relational_store/include/relational_store.h +++ b/zh-cn/distributeddatamgr/relational_store/include/relational_store.h @@ -1049,8 +1049,10 @@ typedef struct Rdb_KeyInfo { /** * 表示密钥信息的数据。 + * + * @since 11 */ - union Rdb_KeyData { + typedef union Rdb_KeyData { /** * 表示uint64_t类型的数据。 */