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

small fixes of select count(*)

This commit is contained in:
joreland@mysql.com
2004-08-27 22:50:06 +02:00
parent 872dff5b69
commit 2258fd6781
2 changed files with 6 additions and 1 deletions

View File

@@ -212,12 +212,15 @@ NdbColumnImpl::create_psuedo(const char * name){
} else if(!strcmp(name, "NDB$ROW_COUNT")){
col->setType(NdbDictionary::Column::Bigunsigned);
col->m_impl.m_attrId = AttributeHeader::ROW_COUNT;
col->m_impl.m_attrSize = 8;
} else if(!strcmp(name, "NDB$COMMIT_COUNT")){
col->setType(NdbDictionary::Column::Bigunsigned);
col->m_impl.m_attrId = AttributeHeader::COMMIT_COUNT;
col->m_impl.m_attrSize = 8;
} else {
abort();
}
return col;
}
/**
@@ -642,7 +645,9 @@ NdbDictionaryImpl::setTransporter(class Ndb* ndb,
NdbColumnImpl::create_psuedo("NDB$COMMIT_COUNT");
}
m_globalHash->unlock();
return true;
}
return false;
}
NdbTableImpl *