diff options
author | unknown <pekka@mysql.com> | 2005-01-27 17:33:35 +0100 |
---|---|---|
committer | unknown <pekka@mysql.com> | 2005-01-27 17:33:35 +0100 |
commit | 1ed40339e24296a51b4e22bbb434aa2752c19601 (patch) | |
tree | f684c24c22c9b9e6b1adca165b5c94327a77ce29 /ndb/include/util | |
parent | 4e5a513c4dbe661788841c8d3f8c994c0e7a23d9 (diff) | |
download | mariadb-git-1ed40339e24296a51b4e22bbb434aa2752c19601.tar.gz |
ndb - make YEAR and TIMESTAMP into ndb types
mysql-test/r/ndb_index_ordered.result:
make YEAR and TIMESTAMP into ndb types
mysql-test/t/ndb_index_ordered.test:
make YEAR and TIMESTAMP into ndb types
ndb/include/kernel/signaldata/DictTabInfo.hpp:
make YEAR and TIMESTAMP into ndb types
ndb/include/ndbapi/NdbDictionary.hpp:
make YEAR and TIMESTAMP into ndb types
ndb/include/util/NdbSqlUtil.hpp:
make YEAR and TIMESTAMP into ndb types
ndb/src/common/util/NdbSqlUtil.cpp:
make YEAR and TIMESTAMP into ndb types
ndb/src/ndbapi/NdbDictionary.cpp:
make YEAR and TIMESTAMP into ndb types
ndb/src/ndbapi/NdbDictionaryImpl.cpp:
make YEAR and TIMESTAMP into ndb types
ndb/src/ndbapi/NdbRecAttr.cpp:
make YEAR and TIMESTAMP into ndb types
ndb/test/include/NdbSchemaOp.hpp:
make YEAR and TIMESTAMP into ndb types
sql/ha_ndbcluster.cc:
make YEAR and TIMESTAMP into ndb types
Diffstat (limited to 'ndb/include/util')
-rw-r--r-- | ndb/include/util/NdbSqlUtil.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ndb/include/util/NdbSqlUtil.hpp b/ndb/include/util/NdbSqlUtil.hpp index 10024d9b616..3787814052a 100644 --- a/ndb/include/util/NdbSqlUtil.hpp +++ b/ndb/include/util/NdbSqlUtil.hpp @@ -84,7 +84,9 @@ public: Date, // Precision down to 1 day (size 4 bytes) Blob, // Blob Text, // Text blob - Time = 25 // Time without date + Time = 25, // Time without date + Year = 26, // Year (size 1 byte) + Timestamp = 27 // Unix seconds (uint32) }; Enum m_typeId; Cmp* m_cmp; // comparison method @@ -137,6 +139,8 @@ private: static Cmp cmpBlob; static Cmp cmpText; static Cmp cmpTime; + static Cmp cmpYear; + static Cmp cmpTimestamp; }; #endif |