Commit 8701e5b0 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Cleanup of sql_derived.cc file

parent eb056f87
...@@ -38,14 +38,15 @@ ...@@ -38,14 +38,15 @@
typedef bool (*dt_processor)(THD *thd, LEX *lex, TABLE_LIST *derived); typedef bool (*dt_processor)(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_create(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_create(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_reinit(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_reinit(THD *thd, LEX *lex, TABLE_LIST *derived);
bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived); static bool mysql_derived_merge_for_insert(THD *thd, LEX *lex,
TABLE_LIST *derived);
dt_processor processors[]= dt_processor processors[]=
{ {
...@@ -331,6 +332,7 @@ mysql_handle_single_derived(LEX *lex, TABLE_LIST *derived, uint phases) ...@@ -331,6 +332,7 @@ mysql_handle_single_derived(LEX *lex, TABLE_LIST *derived, uint phases)
@return TRUE if an error occur. @return TRUE if an error occur.
*/ */
static
bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
bool res= FALSE; bool res= FALSE;
...@@ -513,6 +515,7 @@ bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived) ...@@ -513,6 +515,7 @@ bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived)
@return TRUE if an error occur. @return TRUE if an error occur.
*/ */
static
bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
DBUG_ENTER("mysql_derived_merge_for_insert"); DBUG_ENTER("mysql_derived_merge_for_insert");
...@@ -569,7 +572,7 @@ bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived) ...@@ -569,7 +572,7 @@ bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived)
true Error true Error
*/ */
static
bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
SELECT_LEX_UNIT *unit= derived->get_unit(); SELECT_LEX_UNIT *unit= derived->get_unit();
...@@ -646,7 +649,7 @@ bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived) ...@@ -646,7 +649,7 @@ bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived)
true Error true Error
*/ */
static
bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
SELECT_LEX_UNIT *unit= derived->get_unit(); SELECT_LEX_UNIT *unit= derived->get_unit();
...@@ -917,6 +920,7 @@ bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *derived) ...@@ -917,6 +920,7 @@ bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *derived)
@return TRUE if an error occur. @return TRUE if an error occur.
*/ */
static
bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
SELECT_LEX_UNIT *unit= derived->get_unit(); SELECT_LEX_UNIT *unit= derived->get_unit();
...@@ -1028,6 +1032,7 @@ bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived) ...@@ -1028,6 +1032,7 @@ bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *derived)
@return TRUE if an error occur. @return TRUE if an error occur.
*/ */
static
bool mysql_derived_create(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_create(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
DBUG_ENTER("mysql_derived_create"); DBUG_ENTER("mysql_derived_create");
...@@ -1138,7 +1143,7 @@ bool TABLE_LIST::fill_recursive(THD *thd) ...@@ -1138,7 +1143,7 @@ bool TABLE_LIST::fill_recursive(THD *thd)
@return TRUE Error @return TRUE Error
*/ */
static
bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
Field_iterator_table field_iterator; Field_iterator_table field_iterator;
...@@ -1280,6 +1285,7 @@ bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived) ...@@ -1280,6 +1285,7 @@ bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived)
@return TRUE Error @return TRUE Error
*/ */
static
bool mysql_derived_reinit(THD *thd, LEX *lex, TABLE_LIST *derived) bool mysql_derived_reinit(THD *thd, LEX *lex, TABLE_LIST *derived)
{ {
DBUG_ENTER("mysql_derived_reinit"); DBUG_ENTER("mysql_derived_reinit");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment