• unknown's avatar
    BUG#8807 Select crash server · c672d355
    unknown authored
     - Add function Item_param::fix_fields which will update any subselect they are part of and indicate that the subsleect is not const during prepare phase, and thus should not be executed during prepare.
    
    
    mysql-test/include/ps_query.inc:
      Adde new test case
    mysql-test/r/ps_2myisam.result:
      Update test result
    mysql-test/r/ps_3innodb.result:
      Update test result
    mysql-test/r/ps_4heap.result:
      Update test result
    mysql-test/r/ps_5merge.result:
      Update test result
    mysql-test/r/ps_6bdb.result:
      Update test result
    mysql-test/r/ps_7ndb.result:
      Update test result
    sql/item.cc:
      Add function Item_param::fix_fields, which will mark any subselects they are part of as not being a constant expression unless the param value is specified, ie. it will be not be constant during prepare phase.
    sql/item.h:
      Adde Item_param::fix_fields
    sql/item_subselect.h:
      Make Item_param::fix_field friend of Item_subselect
    c672d355
ps_query.inc 24.6 KB