Commit 6d76317a authored by pekka@mysql.com's avatar pekka@mysql.com

ndb: allow Datetime as pk or index key. XXX ordering is wrong before wl-1442 done

parent b8ce3833
Branches unavailable
Tags unavailable
...@@ -150,7 +150,7 @@ NdbSqlUtil::m_typeList[] = { ...@@ -150,7 +150,7 @@ NdbSqlUtil::m_typeList[] = {
}, },
{ {
Type::Datetime, Type::Datetime,
NULL // cmpDatetime cmpDatetime
}, },
{ {
Type::Timespec, Type::Timespec,
...@@ -458,12 +458,11 @@ NdbSqlUtil::cmpVarbinary(const void* info, const void* p1, unsigned n1, const vo ...@@ -458,12 +458,11 @@ NdbSqlUtil::cmpVarbinary(const void* info, const void* p1, unsigned n1, const vo
return 0; return 0;
} }
// not used by MySQL or NDB // allowed but ordering is wrong before wl-1442 done
int int
NdbSqlUtil::cmpDatetime(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2, bool full) NdbSqlUtil::cmpDatetime(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2, bool full)
{ {
assert(false); return cmpBinary(info, p1, n1, p2, n2, full);
return 0;
} }
// not used by MySQL or NDB // not used by MySQL or NDB
......
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