MySQL 8.0.40
Source Code Documentation
utils.cc File Reference
#include "sql/dd/impl/utils.h"
#include <string>
#include "lex_string.h"
#include "m_ctype.h"
#include "m_string.h"
#include "my_time.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql_com.h"
#include "sql/dd/impl/bootstrap/bootstrap_ctx.h"
#include "sql/dd/properties.h"
#include "sql/sql_base.h"
#include "sql/sql_prepare.h"
#include "sql/stateless_allocator.h"
#include "sql/strfunc.h"
#include "sql/transaction.h"

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 

Functions

bool dd::execute_query (THD *thd, const dd::String_type &q_buf)
 Create a lex string for the query from the string supplied and execute the query. More...
 
void dd::escape (String_type *dst, const String_type &src)
 Escaping of a String_type. More...
 
bool dd::unescape (String_type &dest)
 In place unescaping of String_type. More...
 
bool dd::eat_to (String_type::const_iterator &it, String_type::const_iterator end, char c)
 Start at it, iterate until we hit an unescaped c or the end of the string. More...
 
bool dd::eat_str (String_type &dest, String_type::const_iterator &it, String_type::const_iterator end, char c)
 Start at it, find first unescaped occorrence of c, create destination string and copy substring to destination. More...
 
bool dd::eat_pairs (String_type::const_iterator &it, String_type::const_iterator end, dd::Properties *props)
 Start at it, find a key and value separated by an unescaped '='. More...
 
ulonglong dd::my_time_t_to_ull_datetime (my_time_t seconds_since_epoch)
 Convert seconds since epoch, to a datetime ulonglong using my_tz_OFFSET0 suitable for timestamp fields in the DD. More...
 
bool dd::is_string_in_lowercase (const String_type &str, const CHARSET_INFO *cs)
 Method to verify if string is in lowercase. More...
 
bool dd::end_transaction (THD *thd, bool error)
 Helper function to do rollback or commit, depending on error. More...