MySQL 8.3.0
Source Code Documentation
PT_create_srs Class Referencefinal

Top-level node for the CREATE [OR REPLACE] SPATIAL REFERENCE SYSTEM statement. More...

#include <parse_tree_nodes.h>

Inheritance diagram for PT_create_srs:
[legend]

Public Member Functions

 PT_create_srs (const POS &pos, unsigned long long srid, const Sql_cmd_srs_attributes &attributes, bool or_replace, bool if_not_exists)
 
Sql_cmdmake_cmd (THD *thd) override
 
- Public Member Functions inherited from Parse_tree_root
virtual std::string get_printable_parse_tree (THD *thd)
 

Private Member Functions

bool contains_control_char (char *str, size_t length)
 Check if a UTF-8 string contains control characters. More...
 

Private Attributes

Sql_cmd_create_srs sql_cmd
 The SQL command object. More...
 
bool m_or_replace
 Whether OR REPLACE is specified. More...
 
bool m_if_not_exists
 Whether IF NOT EXISTS is specified. More...
 
unsigned long long m_srid
 SRID of the SRS to create. More...
 
const Sql_cmd_srs_attributes m_attributes
 All attributes except SRID. More...
 

Additional Inherited Members

- Public Attributes inherited from Parse_tree_root
POS m_pos
 Textual location of a token just parsed. More...
 
- Protected Member Functions inherited from Parse_tree_root
 Parse_tree_root ()=default
 
 Parse_tree_root (const POS &pos)
 
virtual ~Parse_tree_root ()=default
 

Detailed Description

Top-level node for the CREATE [OR REPLACE] SPATIAL REFERENCE SYSTEM statement.

Constructor & Destructor Documentation

◆ PT_create_srs()

PT_create_srs::PT_create_srs ( const POS pos,
unsigned long long  srid,
const Sql_cmd_srs_attributes attributes,
bool  or_replace,
bool  if_not_exists 
)
inline

Member Function Documentation

◆ contains_control_char()

bool PT_create_srs::contains_control_char ( char *  str,
size_t  length 
)
inlineprivate

Check if a UTF-8 string contains control characters.

Note
This function only checks single byte control characters (U+0000 to U+001F, and U+007F). There are some control characters at U+0080 to U+00A0 that are not detected by this function.
Parameters
strThe string.
lengthLength of the string.
Return values
falseThe string contains no control characters.
trueThe string contains at least one control character.

◆ make_cmd()

Sql_cmd * PT_create_srs::make_cmd ( THD thd)
overridevirtual

Implements Parse_tree_root.

Member Data Documentation

◆ m_attributes

const Sql_cmd_srs_attributes PT_create_srs::m_attributes
private

All attributes except SRID.

◆ m_if_not_exists

bool PT_create_srs::m_if_not_exists
private

Whether IF NOT EXISTS is specified.

◆ m_or_replace

bool PT_create_srs::m_or_replace
private

Whether OR REPLACE is specified.

◆ m_srid

unsigned long long PT_create_srs::m_srid
private

SRID of the SRS to create.

The range is larger than that of gis::srid_t, so it must be verified to be less than the uint32 maximum value.

◆ sql_cmd

Sql_cmd_create_srs PT_create_srs::sql_cmd
private

The SQL command object.


The documentation for this class was generated from the following files: