1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

* fix for ALTER TABLE ... MODIFY timestamp->timestamp.

Use dedicated  do_field_temporal() for Copy_field.
* check_time_range() needs to know TIME's precision to use the
  correct max value.
This commit is contained in:
Sergei Golubchik
2011-03-17 14:13:03 +01:00
parent a169ede155
commit 1cda265457
7 changed files with 37 additions and 11 deletions

View File

@@ -92,7 +92,7 @@ double TIME_to_double(const MYSQL_TIME *my_time);
longlong pack_time(MYSQL_TIME *my_time);
MYSQL_TIME *unpack_time(longlong packed, MYSQL_TIME *my_time);
int check_time_range(struct st_mysql_time *, int *warning);
int check_time_range(struct st_mysql_time *my_time, uint dec, int *warning);
long calc_daynr(uint year,uint month,uint day);
uint calc_days_in_year(uint year);