1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fixes for last pull

libmysqld/lib_sql.cc:
  Fixed compilation error in embedded library (from last pull)
sql/field.cc:
  Safer timestamp year checking (as 1969 can be in timestamp)
This commit is contained in:
unknown
2003-12-16 14:40:57 +02:00
parent bfb6add213
commit 4bdfe0fb01
2 changed files with 7 additions and 1 deletions

View File

@@ -2589,7 +2589,7 @@ void Field_timestamp::store(longlong nr)
{
long not_used;
if (l_time.year >= TIMESTAMP_MAX_YEAR || l_time.year < 1900+YY_PART_YEAR)
if (l_time.year >= TIMESTAMP_MAX_YEAR || l_time.year < 1900+YY_PART_YEAR-1)
{
current_thd->cuted_fields++;
timestamp=0;