1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-09 18:40:27 +03:00

ndb - make YEAR and TIMESTAMP into ndb types

This commit is contained in:
pekka@mysql.com
2005-01-27 17:33:35 +01:00
parent 170fb5329b
commit 5cbadf4358
11 changed files with 209 additions and 43 deletions

View File

@@ -149,6 +149,8 @@ NdbColumnImpl::init(Type t)
m_cs = default_cs;
break;
case Time:
case Year:
case Timestamp:
m_precision = 0;
m_scale = 0;
m_length = 1;
@@ -1184,6 +1186,8 @@ columnTypeMapping[] = {
{ DictTabInfo::ExtBlob, NdbDictionary::Column::Blob },
{ DictTabInfo::ExtText, NdbDictionary::Column::Text },
{ DictTabInfo::ExtTime, NdbDictionary::Column::Time },
{ DictTabInfo::ExtYear, NdbDictionary::Column::Year },
{ DictTabInfo::ExtTimestamp, NdbDictionary::Column::Timestamp },
{ -1, -1 }
};