~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/last_insert.cc

  • Committer: lbieber
  • Date: 2010-10-02 19:48:35 UTC
  • mfrom: (1730.6.19 drizzle-make-lcov)
  • Revision ID: lbieber@orisndriz08-20101002194835-q5zd9qc4lvx1xnfo
Merge Hartmut - clean up lex, now require flex to build, also "make lcov" improvements

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) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
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
33
33
    int64_t value= args[0]->val_int();
34
34
    null_value= args[0]->null_value;
35
35
    /*
36
 
      LAST_INSERT_ID(X) must affect the client's insert_id() as
 
36
      LAST_INSERT_ID(X) must affect the client's mysql_insert_id() as
37
37
      documented in the manual. We don't want to touch
38
38
      first_successful_insert_id_in_cur_stmt because it would make
39
39
      LAST_INSERT_ID(X) take precedence over an generated auto_increment