~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/time_functions.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-19 14:57:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2445.
  • Revision ID: olafvdspek@gmail.com-20111019145731-y8ycpcinn2pkp3vg
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
  NOTE
73
73
    See description of str_to_datetime() for more information.
74
74
*/
75
 
type::timestamp_t str_to_datetime_with_warn(Session*, const char*, uint32_t length, type::Time *l_time,  uint32_t flags);
 
75
type::timestamp_t str_to_datetime_with_warn(Session&, str_ref, type::Time&, uint32_t flags);
76
76
 
77
77
/*
78
78
  Convert a time string to a type::Time struct and produce a warning
81
81
  NOTE
82
82
    See str_to_time() for more info.
83
83
*/
84
 
bool str_to_time_with_warn(Session *session, const char *str, uint32_t length, type::Time *l_time);
 
84
bool str_to_time_with_warn(Session&, str_ref, type::Time&);
85
85
 
86
 
void make_truncated_value_warning(Session *session, 
87
 
                                  DRIZZLE_ERROR::enum_warning_level level,
88
 
                                  const char *str_val,
89
 
                                  uint32_t str_length, 
90
 
                                  type::timestamp_t time_type,
91
 
                                  const char *field_name);
 
86
void make_truncated_value_warning(Session&, DRIZZLE_ERROR::enum_warning_level level, str_ref, type::timestamp_t, const char* field);
92
87
 
93
88
/*
94
89
  Calculate difference between two datetime values as seconds + microseconds.