mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge MySQL 5.1.46 into MariaDB.
Still two test failures to be solved: main.myisam and main.subselect.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2000-2003 MySQL AB
|
||||
/* Copyright (c) 2000, 2010 Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -1474,9 +1474,21 @@ public:
|
||||
Item_cond(THD *thd, Item_cond *item);
|
||||
Item_cond(List<Item> &nlist)
|
||||
:Item_bool_func(), list(nlist), abort_on_null(0) {}
|
||||
bool add(Item *item) { return list.push_back(item); }
|
||||
bool add_at_head(Item *item) { return list.push_front(item); }
|
||||
void add_at_head(List<Item> *nlist) { list.prepand(nlist); }
|
||||
bool add(Item *item)
|
||||
{
|
||||
DBUG_ASSERT(item);
|
||||
return list.push_back(item);
|
||||
}
|
||||
bool add_at_head(Item *item)
|
||||
{
|
||||
DBUG_ASSERT(item);
|
||||
return list.push_front(item);
|
||||
}
|
||||
void add_at_head(List<Item> *nlist)
|
||||
{
|
||||
DBUG_ASSERT(nlist->elements);
|
||||
list.prepand(nlist);
|
||||
}
|
||||
bool fix_fields(THD *, Item **ref);
|
||||
|
||||
enum Type type() const { return COND_ITEM; }
|
||||
@ -1605,7 +1617,7 @@ public:
|
||||
longlong val_int();
|
||||
const char *func_name() const { return "multiple equal"; }
|
||||
optimize_type select_optimize() const { return OPTIMIZE_EQUAL; }
|
||||
void sort(Item_field_cmpfunc cmp, void *arg);
|
||||
void sort(Item_field_cmpfunc compare, void *arg);
|
||||
friend class Item_equal_iterator;
|
||||
void fix_length_and_dec();
|
||||
bool fix_fields(THD *thd, Item **ref);
|
||||
|
Reference in New Issue
Block a user