160
160
str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
161
161
uint flags, int *was_cut)
163
uint field_length, year_length, digits, i, number_of_fields;
163
uint field_length, year_length=4, digits, i, number_of_fields;
164
164
uint date[MAX_DATE_PARTS], date_len[MAX_DATE_PARTS];
165
165
uint add_hours= 0, start_loop;
166
166
ulong not_zero_date, allow_space;
167
167
my_bool is_internal_format;
169
169
const char *end=str+length;
170
170
const uchar *format_position;
171
171
my_bool found_delimitier= 0, found_space= 0;