fix compile errors
This commit is contained in:
parent
7a82c2c64a
commit
9101e50591
|
@ -174,7 +174,7 @@ static void syncConnCallback(void *param, TAOS_RES *tres, int code) {
|
||||||
TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass, const char *auth, const char *db,
|
TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass, const char *auth, const char *db,
|
||||||
uint16_t port) {
|
uint16_t port) {
|
||||||
STscObj *pObj = NULL;
|
STscObj *pObj = NULL;
|
||||||
SSqlObj *pSql = taosConnectImpl(ip, user, pass, auth, db, port, syncConnCallback, NULL, &pObj);
|
SSqlObj *pSql = taosConnectImpl(ip, user, pass, auth, db, port, syncConnCallback, NULL, (void **)&pObj);
|
||||||
if (pSql != NULL) {
|
if (pSql != NULL) {
|
||||||
pSql->fp = syncConnCallback;
|
pSql->fp = syncConnCallback;
|
||||||
pSql->param = pSql;
|
pSql->param = pSql;
|
||||||
|
@ -245,11 +245,11 @@ static void asyncConnCallback(void *param, TAOS_RES *tres, int code) {
|
||||||
TAOS *taos_connect_a(char *ip, char *user, char *pass, char *db, uint16_t port, void (*fp)(void *, TAOS_RES *, int),
|
TAOS *taos_connect_a(char *ip, char *user, char *pass, char *db, uint16_t port, void (*fp)(void *, TAOS_RES *, int),
|
||||||
void *param, TAOS **taos) {
|
void *param, TAOS **taos) {
|
||||||
STscObj *pObj = NULL;
|
STscObj *pObj = NULL;
|
||||||
SSqlObj* pSql = taosConnectImpl(ip, user, pass, NULL, db, port, asyncConnCallback, param, &pObj);
|
SSqlObj *pSql = taosConnectImpl(ip, user, pass, NULL, db, port, asyncConnCallback, param, (void **)&pObj);
|
||||||
if (pSql == NULL) {
|
if (pSql == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (taos) *taos = pObj;
|
if (taos) *taos = pObj;
|
||||||
|
|
||||||
pSql->fetchFp = fp;
|
pSql->fetchFp = fp;
|
||||||
|
|
|
@ -22,13 +22,12 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct STscObj TAOS;
|
typedef void TAOS;
|
||||||
typedef struct STscStmt TAOS_STMT;
|
typedef void TAOS_STMT;
|
||||||
typedef struct SSqlObj TAOS_RES;
|
typedef void TAOS_RES;
|
||||||
typedef struct SSqlStream TAOS_STREAM;
|
typedef void TAOS_STREAM;
|
||||||
typedef struct SSub TAOS_SUB;
|
typedef void TAOS_SUB;
|
||||||
typedef unsigned char** TAOS_ROW;
|
typedef void **TAOS_ROW;
|
||||||
|
|
||||||
|
|
||||||
// Data type definition
|
// Data type definition
|
||||||
#define TSDB_DATA_TYPE_NULL 0 // 1 bytes
|
#define TSDB_DATA_TYPE_NULL 0 // 1 bytes
|
||||||
|
|
Loading…
Reference in New Issue