fixtureTimestamp() : m_db(NULL) { nsdatabase::setCheckTablePtr(true); m_db = database::create(); if (!m_db) printf("Error database::create()\n"); short ret = createTestDataBase(m_db); if (ret) { printf("Error createDataBase\n"); return; } m_db->connect(makeUri(PROTOCOL, HOSTNAME, _T(""))); if (m_db->stat()) { printf("Error db connect\n"); return; } btrVersions vs; m_db->getBtrVersion(&vs); if (m_db->stat()) { printf("Error getBtrVersion\n"); return; } btrVersion& v = vs.versions[1]; supportDateTimeTimeStamp = v.isSupportDateTimeTimeStamp(); ret = createTestTable(m_db, false, supportDateTimeTimeStamp); if (ret) printf("Error createTable\n"); }
fixtureStore() : m_db(NULL) { nsdatabase::setCheckTablePtr(true); bool db_created = g_db_created; m_db = database::create(); if (!m_db) printf("Error database::create()\n"); short ret = createTestDataBase(m_db); if (ret) { printf("Error createDataBase\n"); return; } if (!db_created) ret = createTestTable(m_db); else { m_db->open(makeUri(PROTOCOL, HOSTNAME, DBNAMEV3, BDFNAME), TYPE_SCHEMA_BDF,TD_OPEN_NORMAL); ret = m_db->stat(); } if (ret) printf("Error createTable\n"); }