Commit 2ac00d8b authored by unknown's avatar unknown

Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1

into  neptunus.(none):/home/msvensson/mysql/bug14634/my41-bug14634


sql/sql_select.cc:
  Auto merged
parents ab30b3e0 646d7905
...@@ -5949,21 +5949,19 @@ do_select(JOIN *join,List<Item> *fields,TABLE *table,Procedure *procedure) ...@@ -5949,21 +5949,19 @@ do_select(JOIN *join,List<Item> *fields,TABLE *table,Procedure *procedure)
} }
if (table) if (table)
{ {
int tmp; int tmp, new_errno= 0;
if ((tmp=table->file->extra(HA_EXTRA_NO_CACHE))) if ((tmp=table->file->extra(HA_EXTRA_NO_CACHE)))
{ {
DBUG_PRINT("error",("extra(HA_EXTRA_NO_CACHE) failed")); DBUG_PRINT("error",("extra(HA_EXTRA_NO_CACHE) failed"));
my_errno= tmp; new_errno= tmp;
error= -1;
} }
if ((tmp=table->file->ha_index_or_rnd_end())) if ((tmp=table->file->ha_index_or_rnd_end()))
{ {
DBUG_PRINT("error",("ha_index_or_rnd_end() failed")); DBUG_PRINT("error",("ha_index_or_rnd_end() failed"));
my_errno= tmp; new_errno= tmp;
error= -1;
} }
if (error == -1) if (new_errno)
table->file->print_error(my_errno,MYF(0)); table->file->print_error(new_errno,MYF(0));
} }
#ifndef DBUG_OFF #ifndef DBUG_OFF
if (error) if (error)
......
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