~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Monty Taylor
  • Date: 2010-10-25 20:36:07 UTC
  • mto: (1879.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1880.
  • Revision ID: mordred@inaugust.com-20101025203607-0xkv1xu0salvc6zd
Split out show_type into its own header and made sys_var work through
plugin.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
304
304
  @verbatim 1,5,15,25,35,... @endverbatim
305
305
*/
306
306
inline uint64_t
307
 
compute_next_insert_id(uint64_t nr,struct system_variables *variables)
 
307
compute_next_insert_id(uint64_t nr, drizzle_system_variables *variables)
308
308
{
309
309
  if (variables->auto_increment_increment == 1)
310
310
    return (nr+1); // optimization of the formula below
344
344
    The number X if it exists, "nr" otherwise.
345
345
*/
346
346
inline uint64_t
347
 
prev_insert_id(uint64_t nr, struct system_variables *variables)
 
347
prev_insert_id(uint64_t nr, drizzle_system_variables *variables)
348
348
{
349
349
  if (unlikely(nr < variables->auto_increment_offset))
350
350
  {
442
442
  uint64_t nr, nb_reserved_values;
443
443
  bool append= false;
444
444
  Session *session= getTable()->in_use;
445
 
  struct system_variables *variables= &session->variables;
 
445
  drizzle_system_variables *variables= &session->variables;
446
446
 
447
447
  /*
448
448
    next_insert_id is a "cursor" into the reserved interval, it may go greater