1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

select.result, select.test:

Added a test case for bug #11745.
sql_select.cc:
  Fixed bug # 11745.
  Added support of where clause for queries with FROM DUAL.
sql_yacc.yy:
  Fixed bug # 11745.
  Added optional where clause for queries with FROM DUAL.
This commit is contained in:
igor@rurik.mysql.com
2005-07-17 09:46:14 -07:00
parent 553f2a59f3
commit 54dd7e5ebf
4 changed files with 36 additions and 2 deletions

View File

@ -1072,7 +1072,7 @@ JOIN::exec()
else
{
result->send_fields(fields_list,1);
if (!having || having->val_int())
if (cond_value != Item::COND_FALSE && (!having || having->val_int()))
{
if (do_send_rows && (procedure ? (procedure->send_row(fields_list) ||
procedure->end_of_records())