30#ifndef SQL_SQL_CMD_SRS_H_INCLUDED
31#define SQL_SQL_CMD_SRS_H_INCLUDED
Definition: sql_cmd_srs.h:56
Sql_cmd_create_srs()=default
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_srs.h:72
MYSQL_LEX_STRING m_definition
The definition of the new SRS.
Definition: sql_cmd_srs.h:101
MYSQL_LEX_STRING m_srs_name
The name of the new SRS.
Definition: sql_cmd_srs.h:97
MYSQL_LEX_STRING m_organization
Organization that is the source of the SRS definition.
Definition: sql_cmd_srs.h:103
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_srs.cc:165
void init(bool or_replace, bool if_not_exists, gis::srid_t srid, MYSQL_LEX_STRING srs_name, MYSQL_LEX_STRING definition, MYSQL_LEX_STRING organization, gis::srid_t organization_coordsys_id, MYSQL_LEX_STRING description)
Definition: sql_cmd_srs.h:59
bool fill_srs(dd::Spatial_reference_system *srs)
Fill an SRS with information from this CREATE statement (except the ID).
Definition: sql_cmd_srs.cc:110
bool m_or_replace
Whether OR REPLACE was specified.
Definition: sql_cmd_srs.h:88
bool m_if_not_exists
Whether IF NOT EXISTS was specified.
Definition: sql_cmd_srs.h:90
gis::srid_t m_organization_coordsys_id
Source organization's SRS ID.
Definition: sql_cmd_srs.h:105
MYSQL_LEX_STRING m_description
Description of the new SRS.
Definition: sql_cmd_srs.h:107
gis::srid_t m_srid
The SRID of the new SRS.
Definition: sql_cmd_srs.h:92
Definition: sql_cmd_srs.h:110
bool m_if_exists
Whether IF EXISTS was specified.
Definition: sql_cmd_srs.h:121
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_srs.cc:237
gis::srid_t m_srid
SRID of the SRS to drop.
Definition: sql_cmd_srs.h:119
Sql_cmd_drop_srs(gis::srid_t srid, bool if_exists)
Definition: sql_cmd_srs.h:112
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_srs.h:114
Representation of an SQL command.
Definition: sql_cmd.h:65
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
Definition: spatial_reference_system.h:53
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_CREATE_SRS
Definition: my_sqlcommand.h:204
@ SQLCOM_DROP_SRS
Definition: my_sqlcommand.h:205
std::uint32_t srid_t
A spatial reference system ID (SRID).
Definition: srid.h:33
Representation of an SQL command.
Definition: mysql_lex_string.h:35
Definition: sql_cmd_srs.h:41
MYSQL_LEX_STRING description
Definition: sql_cmd_srs.h:46
MYSQL_LEX_STRING definition
Definition: sql_cmd_srs.h:43
Sql_cmd_srs_attributes()
Definition: sql_cmd_srs.h:48
MYSQL_LEX_STRING srs_name
Definition: sql_cmd_srs.h:42
MYSQL_LEX_STRING organization
Definition: sql_cmd_srs.h:44
unsigned long long organization_coordsys_id
Definition: sql_cmd_srs.h:45