diff options
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index a199a181be2..8865a18749a 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -1561,7 +1561,7 @@ sp_head::execute_trigger(THD *thd, goto err_with_cleanup; } -#ifndef DBUG_OFF +#ifdef DBUG_ASSERT_EXISTS nctx->sp= this; #endif @@ -1685,7 +1685,7 @@ sp_head::execute_function(THD *thd, Item **argp, uint argcount, */ thd->restore_active_arena(&call_arena, &backup_arena); -#ifndef DBUG_OFF +#ifdef DBUG_ASSERT_EXISTS nctx->sp= this; #endif @@ -1891,7 +1891,7 @@ sp_head::execute_procedure(THD *thd, List<Item> *args) DBUG_RETURN(TRUE); } -#ifndef DBUG_OFF +#ifdef DBUG_ASSERT_EXISTS octx->sp= 0; #endif thd->spcont= octx; @@ -1906,7 +1906,7 @@ sp_head::execute_procedure(THD *thd, List<Item> *args) thd->spcont= save_spcont; DBUG_RETURN(TRUE); } -#ifndef DBUG_OFF +#ifdef DBUG_ASSERT_EXISTS nctx->sp= this; #endif |