提交 6a280ccd 编写于 作者: S Shen Zhi

why C++'s grammar has wrong here

上级 56f327a5
......@@ -1537,18 +1537,10 @@ int tscBuildCreateTableMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
//what pCreate->tableName point is a fixed char array which size is 237
//what p->fullname point is a char*
//before the time we copy p->fullname to pCreate->tableName , we need to check the length of p->fullname
try {
if (strlen(p->fullname) > 237) {
throw runtime_error("length of fullname should be less than 237");
}
}
catch (runtime_error err) {
cout << err.what() <<"\nMay you can reenter"<< endl;
while (strlen(p->fullname) > 237) {
print("length of p->fullname should not exced 237\n");
scanf("%s", p->fullname);
}
}
strcpy(pCreate->tableName, p->fullname);
pCreate->igExists = (p->igExist)? 1 : 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册