组件服务提供对查询属性的访问(参见 第 11.6 节,“查询属性”)。query_attributes 组件使用此服务来提供在 SQL 语句中访问查询属性的功能。A component service provides access to query attributes (see
Section 11.6, “Query Attributes”). The
query_attributes component uses this service to
provide access to query attributes within SQL statements.
目的:实现
mysql_query_attribute_string()函数,该函数接受属性名称作为参数并返回属性值的字符串,如果属性不存在,则返回NULL。Purpose: Implements themysql_query_attribute_string()function that takes an attribute name argument and returns the attribute value as a string, orNULLif the attribute does not exist.统一资源名称:
file://component_query_attributesURN:file://component_query_attributes
希望整合与 query_attributes 相同的查询属性组件服务的开发者,应查阅 MySQL 源代码发行版中的 mysql_query_attributes.h 文件。Developers who wish to incorporate the same query-attribute
component service used by query_attributes
should consult the mysql_query_attributes.h
file in a MySQL source distribution.