MySQL 9.0.0
Source Code Documentation
utils.h File Reference
#include "sql/dd/string_type.h"
#include "sql/tztime.h"

Go to the source code of this file.

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...