Commit 0f716142 authored by unknown's avatar unknown

Fixed bug from last commit


Docs/manual.texi:
  Changelog
parent 6c127155
......@@ -44001,6 +44001,9 @@ Allow @code{SELECT expression LIMIT ...}.
Added @code{IDENTITY} as a synonym for @code{AUTO_INCREMENT} (like Sybase).
@item
Added @code{ORDER BY} syntax to @code{UPDATE} and @code{DELETE}.
@item
Optimized queries of type:
@code{SELECT DISTINCT * from table_name ORDER by key_part1 LIMIT #}
@end itemize
@node News-3.23.x, News-3.22.x, News-4.0.x, News
......@@ -1438,7 +1438,7 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
KEY_FIELD *key_fields,*end;
if (!(key_fields=(KEY_FIELD*)
thd->alloc((sizeof(key_fields[0])*thd->cond_count+1)*2)))
thd->alloc(sizeof(key_fields[0])*(thd->cond_count+1)*2)))
return TRUE; /* purecov: inspected */
and_level=0; end=key_fields;
if (cond)
......
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