155
154
/* We don't want to store invalid or fuzzy datetime values in TIMESTAMP */
156
155
have_smth_to_conv= (str_to_datetime(from, len, &l_time, 1, &error) >
159
158
if (error || !have_smth_to_conv)
163
from, len, DRIZZLE_TIMESTAMP_DATETIME, 1);
162
from, len, MYSQL_TIMESTAMP_DATETIME, 1);
166
165
/* Only convert a correct date (not a zero date) */