~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/time_functions.h

  • Committer: Mark Atwood
  • Date: 2011-10-21 14:25:19 UTC
  • mfrom: (2440.2.28 rf)
  • Revision ID: me@mark.atwood.name-20111021142519-bqnyqrkthibv70rc
Tags: 2011.10.28
mergeĀ lp:~olafvdspek/drizzle/refactor6

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 *session,
76
 
                                            const char *str, 
77
 
                                            uint32_t length,
78
 
                                            type::Time *l_time, 
79
 
                                            uint32_t flags);
 
75
type::timestamp_t str_to_datetime_with_warn(Session&, str_ref, type::Time&, uint32_t flags);
80
76
 
81
77
/*
82
78
  Convert a time string to a type::Time struct and produce a warning
85
81
  NOTE
86
82
    See str_to_time() for more info.
87
83
*/
88
 
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&);
89
85
 
90
 
void make_truncated_value_warning(Session *session, 
91
 
                                  DRIZZLE_ERROR::enum_warning_level level,
92
 
                                  const char *str_val,
93
 
                                  uint32_t str_length, 
94
 
                                  type::timestamp_t time_type,
95
 
                                  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);
96
87
 
97
88
/*
98
89
  Calculate difference between two datetime values as seconds + microseconds.