Re: mysql 5.7.3 insert value item question

AugustQ <[email protected]> Sat, 11 Jan 2014 12:01:41 +0100
Newsgroups gmane.comp.db.mysql.devel
Message-ID <1389438101.4654.4.camel@AMD4>
Hi Rich,

this seems to be a simple case.

in MariaDB 10.04 I can see in item.h:
class Item_insert_value : public Item_field
{
  .....
  enum Type type() const { return INSERT_VALUE_ITEM; }

this line is missing in MySQL (at least in my copy of the source code).

Adding this line should fix it.

AugustQ

On Do, 2014-01-09 at 09:35 -0500, Rich Prohaska wrote:
> In mysql 5.7.3 (and prior versions of mysql including 5.6 and perhaps
> others), there is an item type ITEM_INSERT_VALUE, an Item_insert_value
> class, but no Item class that implements a type() method that returns
> ITEM_INSERT_VALUE.
> 
> In addition, the Item_insert_value::eq method queries an item's type()
> for ITEM_INSERT_VALUE.
> 
> It seems like a bug that the Item_insert_value type is not ITEM_INSERT_VALUE.
> 


-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/internals