diff options
author | wax@kishkin.ru <> | 2003-06-07 02:28:11 +0600 |
---|---|---|
committer | wax@kishkin.ru <> | 2003-06-07 02:28:11 +0600 |
commit | ed02be687c9636f1139058f3ce718b39e38172f6 (patch) | |
tree | 20327b7998b93aaa8f12931fa05939306ed12aa4 /sql/field.cc | |
parent | f922d48f42d406dbac71c7585c7b2836c240efed (diff) | |
parent | b68eab61a610ca772bca054d0a590d1eb866dddb (diff) | |
download | mariadb-git-ed02be687c9636f1139058f3ce718b39e38172f6.tar.gz |
Merge kishkin.ru:/home/wax/mysql-4.1 into kishkin.ru:/home/wax/mysql-4g
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc index 04859dd22e0..394078b7aab 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -2755,6 +2755,7 @@ int Field_timestamp::store(longlong nr) if ((nr=fix_datetime(nr))) { + long not_used; part1=(long) (nr/LL(1000000)); part2=(long) (nr - (longlong) part1*LL(1000000)); l_time.year= (int) (part1/10000L); part1%=10000L; @@ -2763,7 +2764,7 @@ int Field_timestamp::store(longlong nr) l_time.hour= (int) (part2/10000L); part2%=10000L; l_time.minute=(int) part2 / 100; l_time.second=(int) part2 % 100; - timestamp=my_gmt_sec(&l_time); + timestamp=my_gmt_sec(&l_time, ¬_used); } else timestamp=0; |