~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/function/last_insert.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
int64_t Item_func_last_insert_id::val_int()
29
29
{
30
 
  Session *session= current_session;
31
30
  assert(fixed == 1);
32
31
  if (arg_count)
33
32
  {
40
39
      LAST_INSERT_ID(X) take precedence over an generated auto_increment
41
40
      value for this row.
42
41
    */
43
 
    session->arg_of_last_insert_id_function= true;
44
 
    session->first_successful_insert_id_in_prev_stmt= value;
 
42
    getSession().arg_of_last_insert_id_function= true;
 
43
    getSession().first_successful_insert_id_in_prev_stmt= value;
 
44
 
45
45
    return value;
46
46
  }
47
 
  return session->read_first_successful_insert_id_in_prev_stmt();
 
47
  return getSession().read_first_successful_insert_id_in_prev_stmt();
48
48
}
49
49
 
50
50