1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fixed bug from last commit

Docs/manual.texi:
  Changelog
This commit is contained in:
unknown
2001-05-03 08:46:58 +03:00
parent 6c12715595
commit 0f71614290
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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)