//过滤特殊字符会导致数据库存储失败
inline bool CheckNameVaild( const char* pStrName )
{
int nLen = strlen(pStrName);
if(nLen < 1)
return false;
for (int i=0; i < nLen; i++)
{
char c = pStrName[i];
switch (c)
{
case '\'':
case ';':
case '(':
case ')':
case '\\':
case '/':
case ' ':
return false;
break;
}
}
return true;
}