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

Fix for a crashing bug

This commit is contained in:
unknown
2003-03-08 22:19:41 +02:00
parent 0c911187d4
commit 249788280a

View File

@ -7088,7 +7088,7 @@ find_order_in_list(THD *thd, Item **ref_pointer_array,
Item *item=0; Item *item=0;
uint count= (uint) ((Item_int*)itemptr)->value; uint count= (uint) ((Item_int*)itemptr)->value;
if (count > fields.elements) if (!count || count > fields.elements)
{ {
my_printf_error(ER_BAD_FIELD_ERROR,ER(ER_BAD_FIELD_ERROR), my_printf_error(ER_BAD_FIELD_ERROR,ER(ER_BAD_FIELD_ERROR),
MYF(0),itemptr->full_name(), MYF(0),itemptr->full_name(),