1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

A fix for Bug#14845 "mysql_stmt_fetch returns MYSQL_NO_DATA when

COUNT(*) is 0" (the test case has been pushed already)
This commit is contained in:
konstantin@mysql.com
2005-11-19 19:00:02 +03:00
parent 86f1896fb0
commit 723baa4d90

View File

@@ -661,11 +661,10 @@ Materialized_cursor::~Materialized_cursor()
bool Select_materialize::send_fields(List<Item> &list, uint flags)
{
bool rc;
DBUG_ASSERT(table == 0);
if (create_result_table(unit->thd, unit->get_unit_column_types(),
FALSE, thd->options | TMP_TABLE_ALL_COLUMNS, ""))
return TRUE;
return rc;
return FALSE;
}