mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Addressing Monty's review suggestions for MDEV-11952 Oracle-style packages (partial)
- Using array_elements() instead of a constant to iterate through an array - Adding some comments - Adding new-line function comments - Using STRING_WITH_LEN instead of C_STRING_WITH_LEN
This commit is contained in:
committed by
Vladislav Vaintroub
parent
7d91d98ac1
commit
1e69d3f196
8
sql/sp.h
8
sql/sp.h
@ -371,12 +371,12 @@ public:
|
||||
stored_procedure_type type() const { return TYPE_ENUM_PACKAGE; }
|
||||
LEX_CSTRING type_lex_cstring() const
|
||||
{
|
||||
static LEX_CSTRING m_type_str= {C_STRING_WITH_LEN("PACKAGE")};
|
||||
static LEX_CSTRING m_type_str= {STRING_WITH_LEN("PACKAGE")};
|
||||
return m_type_str;
|
||||
}
|
||||
LEX_CSTRING empty_body_lex_cstring(sql_mode_t mode) const
|
||||
{
|
||||
static LEX_CSTRING m_empty_body= {C_STRING_WITH_LEN("BEGIN END")};
|
||||
static LEX_CSTRING m_empty_body= {STRING_WITH_LEN("BEGIN END")};
|
||||
return m_empty_body;
|
||||
}
|
||||
const char *show_create_routine_col1_caption() const
|
||||
@ -404,12 +404,12 @@ public:
|
||||
stored_procedure_type type() const { return TYPE_ENUM_PACKAGE_BODY; }
|
||||
LEX_CSTRING type_lex_cstring() const
|
||||
{
|
||||
static LEX_CSTRING m_type_str= {C_STRING_WITH_LEN("PACKAGE BODY")};
|
||||
static LEX_CSTRING m_type_str= {STRING_WITH_LEN("PACKAGE BODY")};
|
||||
return m_type_str;
|
||||
}
|
||||
LEX_CSTRING empty_body_lex_cstring(sql_mode_t mode) const
|
||||
{
|
||||
static LEX_CSTRING m_empty_body= {C_STRING_WITH_LEN("BEGIN END")};
|
||||
static LEX_CSTRING m_empty_body= {STRING_WITH_LEN("BEGIN END")};
|
||||
return m_empty_body;
|
||||
}
|
||||
const char *show_create_routine_col1_caption() const
|
||||
|
Reference in New Issue
Block a user