List:Internals« Previous MessageNext Message »
From:AugustQ Date:January 11 2014 11:01am
Subject:Re: mysql 5.7.3 insert value item question
View as plain text  
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.
> 

Thread
mysql 5.7.3 insert value item questionRich Prohaska9 Jan 2014
  • Re: mysql 5.7.3 insert value item questionØystein Grøvlen9 Jan 2014
    • Re: mysql 5.7.3 insert value item questionRich Prohaska9 Jan 2014
  • Re: mysql 5.7.3 insert value item questionAugustQ11 Jan 2014