~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/last_insert.cc

  • Committer: patrick crews
  • Date: 2010-05-20 03:29:50 UTC
  • mto: This revision was merged to the branch mainline in revision 1565.
  • Revision ID: patrick.crews@sun.com-20100520032950-7452uruysx9kb6bn
Fixed incorrectly altered test commenting to reflect the proper bug descriptions (mysqldump v. drizzledump)

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;
30
31
  assert(fixed == 1);
31
32
  if (arg_count)
32
33
  {
39
40
      LAST_INSERT_ID(X) take precedence over an generated auto_increment
40
41
      value for this row.
41
42
    */
42
 
    getSession().arg_of_last_insert_id_function= true;
43
 
    getSession().first_successful_insert_id_in_prev_stmt= value;
44
 
 
 
43
    session->arg_of_last_insert_id_function= true;
 
44
    session->first_successful_insert_id_in_prev_stmt= value;
45
45
    return value;
46
46
  }
47
 
  return getSession().read_first_successful_insert_id_in_prev_stmt();
 
47
  return session->read_first_successful_insert_id_in_prev_stmt();
48
48
}
49
49
 
50
50