diff options
Diffstat (limited to 'pars/pars0pars.c')
-rw-r--r-- | pars/pars0pars.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/pars/pars0pars.c b/pars/pars0pars.c index 8cd8a531829..62ae3b3d09b 100644 --- a/pars/pars0pars.c +++ b/pars/pars0pars.c @@ -1,8 +1,24 @@ +/***************************************************************************** + +Copyright (c) 1996, 2009, Innobase Oy. 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 the Free Software +Foundation; version 2 of the License. + +This program is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with +this program; if not, write to the Free Software Foundation, Inc., 59 Temple +Place, Suite 330, Boston, MA 02111-1307 USA + +*****************************************************************************/ + /****************************************************** SQL parser -(c) 1996 Innobase Oy - Created 11/19/1996 Heikki Tuuri *******************************************************/ @@ -1032,19 +1048,6 @@ pars_update_statement( node->pcur = &(plan->pcur); } - if (!node->is_delete && node->searched_update - && (node->cmpl_info & UPD_NODE_NO_SIZE_CHANGE) - && (node->cmpl_info & UPD_NODE_NO_ORD_CHANGE)) { - - /* The select node can perform the update in-place */ - - ut_a(plan->asc); - - node->select_will_do_update = TRUE; - sel_node->select_will_do_update = TRUE; - sel_node->latch_mode = BTR_MODIFY_LEAF; - } - return(node); } |