~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.cc

  • Committer: Jay Pipes
  • Date: 2009-06-11 17:44:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1061.
  • Revision ID: jpipes@serialcoder-20090611174412-wk98egglux8h2cr2
More style cleanups in Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
/**
21
 
  @file
22
 
 
23
 
  @brief
24
 
  Handling of MySQL SQL variables
 
21
  @file Handling of MySQL SQL variables
25
22
 
26
23
  @details
27
24
  To add a new variable, one has to do the following:
1505
1502
unsigned char *sys_var_timestamp::value_ptr(Session *session, enum_var_type,
1506
1503
                                            const LEX_STRING *)
1507
1504
{
1508
 
  session->sys_var_tmp.long_value= (long) session->start_time;
1509
 
  return (unsigned char*) &session->sys_var_tmp.long_value;
 
1505
  session->sys_var_tmp.int32_t_value= (int32_t) session->start_time;
 
1506
  return (unsigned char*) &session->sys_var_tmp.int32_t_value;
1510
1507
}
1511
1508
 
1512
1509