~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.cc

  • Committer: Brian Aker
  • Date: 2008-12-24 00:37:31 UTC
  • Revision ID: brian@tangent.org-20081224003731-djv3brjlkgdacb2u
RemoveĀ setĀ insert_id

Show diffs side-by-side

added added

removed removed

Lines of Context:
455
455
  statement-based logging mode: t will be different on master and
456
456
  slave).
457
457
*/
458
 
static sys_var_insert_id sys_insert_id(&vars, "insert_id");
459
458
static sys_var_readonly sys_error_count(&vars, "error_count",
460
459
                                        OPT_SESSION,
461
460
                                        SHOW_LONG,
1939
1938
}
1940
1939
 
1941
1940
 
1942
 
bool sys_var_insert_id::update(Session *session, set_var *var)
1943
 
{
1944
 
  session->force_one_auto_inc_interval(var->save_result.uint64_t_value);
1945
 
  return 0;
1946
 
}
1947
 
 
1948
 
 
1949
 
unsigned char *sys_var_insert_id::value_ptr(Session *session, enum_var_type,
1950
 
                                            LEX_STRING *)
1951
 
{
1952
 
  session->sys_var_tmp.uint64_t_value=
1953
 
    session->auto_inc_intervals_forced.minimum();
1954
 
  return (unsigned char*) &session->sys_var_tmp.uint64_t_value;
1955
 
}
1956
 
 
1957
 
 
1958
1941
bool sys_var_session_time_zone::check(Session *session, set_var *var)
1959
1942
{
1960
1943
  char buff[MAX_TIME_ZONE_NAME_LENGTH];