~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/update.cc

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:18:23 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114051823-14fyn2kvg8pc5a15
\r and trailing whitespace removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
39
39
  }
40
40
  assert(select_lex->offset_limit == 0);
41
41
  unit->set_limit(select_lex);
42
 
  bool res= mysql_update(session, 
 
42
  bool res= update_query(session, 
43
43
                         all_tables,
44
44
                         select_lex->item_list,
45
45
                         session->lex->value_list,
46
46
                         select_lex->where,
47
47
                         select_lex->order_list.elements,
48
 
                         (order_st *) select_lex->order_list.first,
 
48
                         (Order *) select_lex->order_list.first,
49
49
                         unit->select_limit_cnt,
50
50
                         session->lex->duplicates, 
51
51
                         session->lex->ignore);