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:
@ -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(),
|
||||||
|
Reference in New Issue
Block a user