Commit 69a32092 authored by jimw@mysql.com's avatar jimw@mysql.com

Merge bk-internal:/home/bk/mysql-5.0

into  mysql.com:/home/jimw/my/mysql-5.0-clean
parents 58a62145 93ae805d
...@@ -4543,9 +4543,9 @@ int Field_timestamp::store(longlong nr) ...@@ -4543,9 +4543,9 @@ int Field_timestamp::store(longlong nr)
THD *thd= table->in_use; THD *thd= table->in_use;
/* We don't want to store invalid or fuzzy datetime values in TIMESTAMP */ /* We don't want to store invalid or fuzzy datetime values in TIMESTAMP */
long tmp= number_to_datetime(nr, &l_time, (thd->variables.sql_mode & longlong tmp= number_to_datetime(nr, &l_time, (thd->variables.sql_mode &
MODE_NO_ZERO_DATE) | MODE_NO_ZERO_DATE) |
MODE_NO_ZERO_IN_DATE, &error); MODE_NO_ZERO_IN_DATE, &error);
if (tmp < 0) if (tmp < 0)
{ {
error= 2; error= 2;
...@@ -5389,7 +5389,7 @@ int Field_newdate::store(double nr) ...@@ -5389,7 +5389,7 @@ int Field_newdate::store(double nr)
int Field_newdate::store(longlong nr) int Field_newdate::store(longlong nr)
{ {
TIME l_time; TIME l_time;
long tmp; longlong tmp;
int error; int error;
if ((tmp= number_to_datetime(nr, &l_time, if ((tmp= number_to_datetime(nr, &l_time,
(TIME_FUZZY_DATE | (TIME_FUZZY_DATE |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment