|
@@ -61,6 +61,8 @@ namespace OTSClassifyEngine
|
|
|
return myDB->GetTableQuery(a_sOrderColumnName);
|
|
|
}
|
|
|
|
|
|
+ const int STDGroupsColCount = 4;
|
|
|
+ const int ColCountComplement = 1;
|
|
|
ParticleSTDPtr CParticleSTDDB::GetPartSTDLib(ParticleSTDPtr partStd,BOOL bForce/* = FALSE*/)
|
|
|
{
|
|
|
|
|
@@ -74,8 +76,8 @@ namespace OTSClassifyEngine
|
|
|
auto query = myDB->GetCommandStringQuery(cmdstr);
|
|
|
ASSERT(query);
|
|
|
int cols = query->GetColCount();
|
|
|
- int defineCols =(int) CParticleSTDTable::ColumnID::MAX -(int) CParticleSTDTable::ColumnID::MIN;
|
|
|
- if (cols != defineCols+1+4)
|
|
|
+ int defineCols =(int) CParticleSTDTable::ColumnID::MAX -(int) CParticleSTDTable::ColumnID::MIN+STDGroupsColCount+ ColCountComplement;
|
|
|
+ if (cols != defineCols)
|
|
|
{
|
|
|
LogErrorTrace(__FILE__, __LINE__, _T("std db version is not match!"));
|
|
|
return NULL;
|