fix create scripts

pull/1/head
deffpuzzl 2018-06-20 11:21:24 +08:00
parent a3ed554ee4
commit cfaaf54fc8
3 changed files with 10 additions and 4 deletions

View File

@ -116,6 +116,10 @@ STVM也提供一个类型sqlpuls类型简单工具。
>* 1、新增queue网络同步异步接口
>* 1、新增将表中长时间无用数据导出备份接口
====***更新日期:20180610***====
>* 1、新增分布式锁
**下本版本:**
* 1、新增多机资源共享方式。
* 2、JAVA接口开发

View File

@ -34,7 +34,7 @@ typedef long CREATE;
//#pragma pack(4)
#define TVM_VKERNEL "1.2.0.0"
#define TVM_VERSION "1.2.4.0"
#define TVM_VERSION "1.2.5.0"
/*************************************************************************************************
custom macro
*************************************************************************************************/

View File

@ -984,14 +984,16 @@ long lDefineTable(char *pszCreate, char *pszTable)
sfieldreplace(pszCreate, '\t', ' ');
if(NULL == (p = strcasestr(pszCreate, "create table")) &&
NULL == (p = strcasestr(pszCreate, "create queue")))
if(NULL == strcasestr(pszCreate, "create table") &&
NULL == strcasestr(pszCreate, "create queue"))
{
fprintf(stderr, "Lost table syntax\n");
return RC_FAIL;
}
if(NULL != strcasestr(pszCreate, "create queue"))
if(NULL != (p = strcasestr(pszCreate, "create table")))
bQueue = false;
else if(NULL != (p = strcasestr(pszCreate, "create queue")))
bQueue = true;
memset(&sf, 0, sizeof(TblDef));