void test_describe(void) { ocout << otext("\n>>>>> TEST DESCRIBING TABLE \n\n"); ocout << otext("Column Name Type ") << oendl; ocout << otext("----------------------------------------") << oendl; ocout << std::setiosflags(std::ios::left); TypeInfo table(con, otext("test_fetch"), TypeInfo::Table); for (int i = 1, n = table.GetColumnCount(); i <= n; i++) { Column col = table.GetColumn(i); ocout << std::setw(20) << col.GetName().c_str() << std::setw(20) << col.GetFullSQLType().c_str() << oendl; } /* TEST DESCRIBING TYPE ------------------------------------------------- */ ocout << otext("\n>>>>> TEST DESCRIBING TYPE \n\n"); ocout << otext("Column Name Type ") << oendl; ocout << otext("----------------------------------------") << oendl; ocout << std::setiosflags(std::ios::left); TypeInfo type(con, otext("test_t"), TypeInfo::Type); for (int i = 1, n = type.GetColumnCount(); i <= n; i++) { Column col = type.GetColumn(i); ocout << std::setw(20) << col.GetName().c_str() << std::setw(20) << col.GetFullSQLType().c_str() << oendl; } }