29#ifndef SQL_SQL_CMD_SRS_H_INCLUDED
30#define SQL_SQL_CMD_SRS_H_INCLUDED
Definition: sql_cmd_srs.h:55
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:71
MYSQL_LEX_STRING m_definition
The definition of the new SRS.
Definition: sql_cmd_srs.h:100
MYSQL_LEX_STRING m_srs_name
The name of the new SRS.
Definition: sql_cmd_srs.h:96
MYSQL_LEX_STRING m_organization
Organization that is the source of the SRS definition.
Definition: sql_cmd_srs.h:102
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_srs.cc:164
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:58
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:109
bool m_or_replace
Whether OR REPLACE was specified.
Definition: sql_cmd_srs.h:87
bool m_if_not_exists
Whether IF NOT EXISTS was specified.
Definition: sql_cmd_srs.h:89
gis::srid_t m_organization_coordsys_id
Source organization's SRS ID.
Definition: sql_cmd_srs.h:104
MYSQL_LEX_STRING m_description
Description of the new SRS.
Definition: sql_cmd_srs.h:106
gis::srid_t m_srid
The SRID of the new SRS.
Definition: sql_cmd_srs.h:91
Definition: sql_cmd_srs.h:109
bool m_if_exists
Whether IF EXISTS was specified.
Definition: sql_cmd_srs.h:120
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_srs.cc:236
gis::srid_t m_srid
SRID of the SRS to drop.
Definition: sql_cmd_srs.h:118
Sql_cmd_drop_srs(gis::srid_t srid, bool if_exists)
Definition: sql_cmd_srs.h:111
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_srs.h:113
Representation of an SQL command.
Definition: sql_cmd.h:81
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
Definition: spatial_reference_system.h:52
enum_sql_command
Definition: my_sqlcommand.h:45
@ SQLCOM_CREATE_SRS
Definition: my_sqlcommand.h:203
@ SQLCOM_DROP_SRS
Definition: my_sqlcommand.h:204
std::uint32_t srid_t
A spatial reference system ID (SRID).
Definition: srid.h:32
Representation of an SQL command.
Definition: mysql_lex_string.h:34
Definition: sql_cmd_srs.h:40
MYSQL_LEX_STRING description
Definition: sql_cmd_srs.h:45
MYSQL_LEX_STRING definition
Definition: sql_cmd_srs.h:42
Sql_cmd_srs_attributes()
Definition: sql_cmd_srs.h:47
MYSQL_LEX_STRING srs_name
Definition: sql_cmd_srs.h:41
MYSQL_LEX_STRING organization
Definition: sql_cmd_srs.h:43
unsigned long long organization_coordsys_id
Definition: sql_cmd_srs.h:44