[td-11818] fix compiler error.
This commit is contained in:
parent
f17fa8cc23
commit
db0fead24e
|
@ -153,7 +153,7 @@ DLL_EXPORT int taos_stmt_close(TAOS_STMT *stmt);
|
||||||
DLL_EXPORT char * taos_stmt_errstr(TAOS_STMT *stmt);
|
DLL_EXPORT char * taos_stmt_errstr(TAOS_STMT *stmt);
|
||||||
|
|
||||||
DLL_EXPORT TAOS_RES *taos_query(TAOS *taos, const char *sql);
|
DLL_EXPORT TAOS_RES *taos_query(TAOS *taos, const char *sql);
|
||||||
DLL_EXPORT TAOS_RES *taos_query_l(TAOS *taos, const char *sql, size_t sqlLen);
|
DLL_EXPORT TAOS_RES *taos_query_l(TAOS *taos, const char *sql, int sqlLen);
|
||||||
|
|
||||||
DLL_EXPORT TAOS_ROW taos_fetch_row(TAOS_RES *res);
|
DLL_EXPORT TAOS_ROW taos_fetch_row(TAOS_RES *res);
|
||||||
DLL_EXPORT int taos_result_precision(TAOS_RES *res); // get the time precision of result
|
DLL_EXPORT int taos_result_precision(TAOS_RES *res); // get the time precision of result
|
||||||
|
|
|
@ -9,7 +9,7 @@ target_link_libraries(
|
||||||
taos
|
taos
|
||||||
PRIVATE common
|
PRIVATE common
|
||||||
INTERFACE api
|
INTERFACE api
|
||||||
PRIVATE os util common transport parser catalog function
|
PRIVATE os util common transport parser catalog function query
|
||||||
)
|
)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(test)
|
ADD_SUBDIRECTORY(test)
|
|
@ -149,7 +149,7 @@ void processMsgFromServer(void* parent, SRpcMsg* pMsg, SEpSet* pEpSet);
|
||||||
void initMsgHandleFp();
|
void initMsgHandleFp();
|
||||||
|
|
||||||
TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass, const char *auth, const char *db, uint16_t port);
|
TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass, const char *auth, const char *db, uint16_t port);
|
||||||
TAOS_RES *taos_query_l(TAOS *taos, const char *sql, size_t sqlLen);
|
TAOS_RES *taos_query_l(TAOS *taos, const char *sql, int sqlLen);
|
||||||
|
|
||||||
void* doFetchRow(SRequestObj* pRequest);
|
void* doFetchRow(SRequestObj* pRequest);
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass,
|
||||||
return taosConnectImpl(ip, user, &secretEncrypt[0], db, port, NULL, NULL, pInst);
|
return taosConnectImpl(ip, user, &secretEncrypt[0], db, port, NULL, NULL, pInst);
|
||||||
}
|
}
|
||||||
|
|
||||||
TAOS_RES *taos_query_l(TAOS *taos, const char *sql, size_t sqlLen) {
|
TAOS_RES *taos_query_l(TAOS *taos, const char *sql, int sqlLen) {
|
||||||
STscObj *pTscObj = (STscObj *)taos;
|
STscObj *pTscObj = (STscObj *)taos;
|
||||||
if (sqlLen > (size_t) tsMaxSQLStringLen) {
|
if (sqlLen > (size_t) tsMaxSQLStringLen) {
|
||||||
tscError("sql string exceeds max length:%d", tsMaxSQLStringLen);
|
tscError("sql string exceeds max length:%d", tsMaxSQLStringLen);
|
||||||
|
|
|
@ -3184,7 +3184,7 @@ STableMeta* createTableMetaFromMsg(STableMetaMsg* pTableMetaMsg) {
|
||||||
STableMeta* pTableMeta = calloc(1, sizeof(STableMeta) + schemaSize);
|
STableMeta* pTableMeta = calloc(1, sizeof(STableMeta) + schemaSize);
|
||||||
|
|
||||||
pTableMeta->tableType = pTableMetaMsg->tableType;
|
pTableMeta->tableType = pTableMetaMsg->tableType;
|
||||||
pTableMeta->vgId = pTableMetaMsg->vgroup.vgId;
|
pTableMeta->vgId = pTableMetaMsg->vgId;
|
||||||
pTableMeta->suid = pTableMetaMsg->suid;
|
pTableMeta->suid = pTableMetaMsg->suid;
|
||||||
pTableMeta->uid = pTableMetaMsg->tuid;
|
pTableMeta->uid = pTableMetaMsg->tuid;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue