#include <mysql_statement_service.h>
◆ get
Get the current value for a statement attribute. 
- Parameters
 - 
  
    | [in] | statement | A handle to the statement  | 
    | [in] | name | Attribute name to get | 
  
   
The following attributes are supported:
- Buffer capacity of the statement ("buffer_capacity" of the input size_t type, default: 500)
 
- Number of prefetch rows for prepared statements ("prefetch_rows" of the input size_t type, default: 1)
 
- Expected charset name ("charset_name" of the input mysql_cstring_with_length type, default: utf8mb4)
 
- Use the existing protocol from thd ("use_thd_protocol" of the input bool type, default: false)
 
- Parameters
 - 
  
    | [out] | value | The value of the attribute  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ set
Set the value of a statement attribute. 
- Note
 - Setting the attribute is only allowed after init and before prepare/execute.
 
- Parameters
 - 
  
    | [in] | statement | A handle to the statement  | 
    | [in] | name | Attribute name to be set  | 
    | [in] | value | The value of the attribute  | 
  
   
- Return values
 - 
  
  
 
 
 
The documentation for this struct was generated from the following file: