diff options
author | unknown <lzhou/zhl@dev3-63.(none)> | 2007-09-05 15:37:30 +0000 |
---|---|---|
committer | unknown <lzhou/zhl@dev3-63.(none)> | 2007-09-05 15:37:30 +0000 |
commit | c36bc160f70ca8db000c16123a1b0fb77e279753 (patch) | |
tree | 6866905922a7ce7470d8a765a7125c74827953a6 /storage/ndb/tools | |
parent | 9462359eba96be705a47d1917bbe8ad41008ee96 (diff) | |
parent | b6f327957323e3c9bdabaa6babe30a3c142578c6 (diff) | |
download | mariadb-git-c36bc160f70ca8db000c16123a1b0fb77e279753.tar.gz |
Merge lzhou@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb-bj
into dev3-63.(none):/home/zhl/mysql/mysql-5.1/bug27543
storage/ndb/tools/restore/Restore.cpp:
Remove additional space when merge
Diffstat (limited to 'storage/ndb/tools')
-rw-r--r-- | storage/ndb/tools/restore/Restore.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/storage/ndb/tools/restore/Restore.cpp b/storage/ndb/tools/restore/Restore.cpp index 5125446fe16..a7d8a9d10d9 100644 --- a/storage/ndb/tools/restore/Restore.cpp +++ b/storage/ndb/tools/restore/Restore.cpp @@ -681,6 +681,17 @@ RestoreDataIterator::getNextTuple(int & res) memcpy(p, &x, sizeof(Uint64)); } + //convert datetime type + if(!m_hostByteOrder + && attr_desc->m_column->getType() == NdbDictionary::Column::Datetime) + { + char* p = (char*)&attr_data->u_int64_value[0]; + Uint64 x; + memcpy(&x, p, sizeof(Uint64)); + x = Twiddle64(x); + memcpy(p, &x, sizeof(Uint64)); + } + if(!Twiddle(attr_desc, attr_data, attr_desc->arraySize)) { res = -1; |