#At file:///home/tomas/mysql_src/mysql-6.0-ndb/
2702 Tomas Ulin 2008-12-12 [merge]
merge
modified:
storage/ndb/tools/desc.cpp
=== modified file 'storage/ndb/tools/desc.cpp'
--- a/storage/ndb/tools/desc.cpp 2008-02-19 15:00:29 +0000
+++ b/storage/ndb/tools/desc.cpp 2008-12-11 14:09:06 +0000
@@ -354,9 +354,24 @@ void print_part_info(Ndb* pNdb, NDBT_Tab
{
for(i = 0; g_part_info[i].m_title != 0; i++)
{
- ndbout << *g_part_info[i].m_rec_attr << "\t";
+ NdbRecAttr &r= *g_part_info[i].m_rec_attr;
+ unsigned long long val;
+ switch (r.getType()) {
+ case NdbDictionary::Column::Bigunsigned:
+ val= r.u_64_value();
+ break;
+ case NdbDictionary::Column::Unsigned:
+ val= r.u_32_value();
+ break;
+ default:
+ abort();
+ }
+ if (val != 0)
+ printf("%-*.llu\t", (int)strlen(g_part_info[i].m_title), val);
+ else
+ printf("0%*.s\t", (int)strlen(g_part_info[i].m_title), "");
}
- ndbout << endl;
+ printf("\n");
}
} while(0);
| Thread |
|---|
| • bzr commit into mysql-6.0 branch (tomas.ulin:2702) | Tomas Ulin | 12 Dec |