Bug #18964 return 0 instead of DBUG_RETURN(0) in sql_base.cc::open_table()
Submitted: 10 Apr 2006 17:59 Modified: 27 Apr 2006 4:56
Reporter: Andrey Hristov
Status: Closed
Category:Server Severity:S3 (Non-critical)
Version:5.0.20 OS:Any (All)
Assigned to: Tatjana A. Nuernberg Target Version:

[10 Apr 2006 17:59] Andrey Hristov
Description:
the macro DBUG_RETURN() is not used in the following code which exists in 5.0 onwards

  if (check_stack_overrun(thd, STACK_MIN_SIZE_FOR_OPEN, (char *)&alias))
    return 0;

Because of this the server emits an error message:
mysqld: missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "open_table"

How to repeat:
See the source
[10 Apr 2006 18:22] Miguel Solorzano
Thank you for the bug report.
[20 Apr 2006 1:02] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/5181
[20 Apr 2006 17:38] Tatjana A. Nuernberg
fixed in 5.0.21
[27 Apr 2006 4:56] Paul DuBois
Noted in 5.0.21 changelog.

A missing <literal>DBUG_RETURN()</literal> caused the server
to emit a spurious error message: <literal>missing DBUG_RETURN
or DBUG_VOID_RETURN macro in function "open_table"</literal>.
(Bug #18964)