Commit dfe6e914 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: remove TYPE_ENUM_PROXY from enum stored_procedure_type

because it is not
parent f3f31eaa
...@@ -1241,7 +1241,6 @@ Sp_handler::sp_create_routine(THD *thd, const sp_head *sp) const ...@@ -1241,7 +1241,6 @@ Sp_handler::sp_create_routine(THD *thd, const sp_head *sp) const
ret= sp_drop_routine_internal(thd, sp, table); ret= sp_drop_routine_internal(thd, sp, table);
break; break;
case TYPE_ENUM_TRIGGER: case TYPE_ENUM_TRIGGER:
case TYPE_ENUM_PROXY:
DBUG_ASSERT(0); DBUG_ASSERT(0);
ret= SP_OK; ret= SP_OK;
} }
......
...@@ -54,8 +54,7 @@ enum stored_procedure_type ...@@ -54,8 +54,7 @@ enum stored_procedure_type
TYPE_ENUM_PROCEDURE=2, TYPE_ENUM_PROCEDURE=2,
TYPE_ENUM_PACKAGE=3, TYPE_ENUM_PACKAGE=3,
TYPE_ENUM_PACKAGE_BODY=4, TYPE_ENUM_PACKAGE_BODY=4,
TYPE_ENUM_TRIGGER=5, TYPE_ENUM_TRIGGER=5
TYPE_ENUM_PROXY=6
}; };
...@@ -506,8 +505,6 @@ inline const Sp_handler *Sp_handler::handler(stored_procedure_type type) ...@@ -506,8 +505,6 @@ inline const Sp_handler *Sp_handler::handler(stored_procedure_type type)
return &sp_handler_package_body; return &sp_handler_package_body;
case TYPE_ENUM_TRIGGER: case TYPE_ENUM_TRIGGER:
return &sp_handler_trigger; return &sp_handler_trigger;
case TYPE_ENUM_PROXY:
break;
} }
return NULL; return NULL;
} }
......
...@@ -5883,7 +5883,6 @@ static enum PRIVS_TO_MERGE::what sp_privs_to_merge(stored_procedure_type type) ...@@ -5883,7 +5883,6 @@ static enum PRIVS_TO_MERGE::what sp_privs_to_merge(stored_procedure_type type)
case TYPE_ENUM_PACKAGE_BODY: case TYPE_ENUM_PACKAGE_BODY:
return PRIVS_TO_MERGE::PACKAGE_BODY; return PRIVS_TO_MERGE::PACKAGE_BODY;
case TYPE_ENUM_TRIGGER: case TYPE_ENUM_TRIGGER:
case TYPE_ENUM_PROXY:
break; break;
} }
DBUG_ASSERT(0); DBUG_ASSERT(0);
......
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